File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,8 @@ services:
150
150
- MONGO_DBNAME=unifi
151
151
- MEM_LIMIT=1024 #optional
152
152
- MEM_STARTUP=1024 #optional
153
+ - MONGO_TLS= #optional
154
+ - MONGO_AUTHSOURCE= #optional
153
155
volumes:
154
156
- /path/to/data:/config
155
157
ports:
@@ -180,6 +182,8 @@ docker run -d \
180
182
-e MONGO_DBNAME=unifi \
181
183
-e MEM_LIMIT=1024 ` #optional` \
182
184
-e MEM_STARTUP=1024 `#optional` \
185
+ -e MONGO_TLS= `#optional` \
186
+ -e MONGO_AUTHSOURCE= `#optional` \
183
187
-p 8443:8443 \
184
188
-p 3478:3478/udp \
185
189
-p 10001:10001/udp \
@@ -219,6 +223,8 @@ Containers are configured using parameters passed at runtime (such as those abov
219
223
| ` -e MONGO_DBNAME=unifi ` | Mongodb Database Name (stats DB is automatically suffixed with ` _stat ` ). Only evaluated on first run. |
220
224
| ` -e MEM_LIMIT=1024 ` | Optionally change the Java memory limit (in Megabytes). Set to ` default ` to reset to default |
221
225
| ` -e MEM_STARTUP=1024 ` | Optionally change the Java initial/minimum memory (in Megabytes). Set to ` default ` to reset to default |
226
+ | ` -e MONGO_TLS= ` | Mongodb enable TLS. Only evaluated on first run. |
227
+ | ` -e MONGO_AUTHSOURCE= ` | Mongodb authSource. For Atlas set to ` admin ` .Defaults to ` MONGO_DBNAME ` .Only evaluated on first run. |
222
228
| ` -v /config ` | All Unifi data stored here |
223
229
224
230
## Environment variables from files (Docker secrets)
@@ -397,4 +403,5 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
397
403
398
404
# # Versions
399
405
406
+ * ** 17.10.23:** - Add environment variables for TLS and authSource to support Atlas and new MongoDB versions.
400
407
* ** 05.09.23:** - Initial release.
You can’t perform that action at this time.
0 commit comments