Skip to content

Commit e0b85fe

Browse files
Bot Updating Templated Files
1 parent a87ec4e commit e0b85fe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ services:
150150
- MONGO_DBNAME=unifi
151151
- MEM_LIMIT=1024 #optional
152152
- MEM_STARTUP=1024 #optional
153+
- MONGO_TLS= #optional
154+
- MONGO_AUTHSOURCE= #optional
153155
volumes:
154156
- /path/to/data:/config
155157
ports:
@@ -180,6 +182,8 @@ docker run -d \
180182
-e MONGO_DBNAME=unifi \
181183
-e MEM_LIMIT=1024 `#optional` \
182184
-e MEM_STARTUP=1024 `#optional` \
185+
-e MONGO_TLS= `#optional` \
186+
-e MONGO_AUTHSOURCE= `#optional` \
183187
-p 8443:8443 \
184188
-p 3478:3478/udp \
185189
-p 10001:10001/udp \
@@ -219,6 +223,8 @@ Containers are configured using parameters passed at runtime (such as those abov
219223
| `-e MONGO_DBNAME=unifi` | Mongodb Database Name (stats DB is automatically suffixed with `_stat`). Only evaluated on first run. |
220224
| `-e MEM_LIMIT=1024` | Optionally change the Java memory limit (in Megabytes). Set to `default` to reset to default |
221225
| `-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. |
222228
| `-v /config` | All Unifi data stored here |
223229

224230
## Environment variables from files (Docker secrets)
@@ -397,4 +403,5 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
397403

398404
## Versions
399405

406+
* **17.10.23:** - Add environment variables for TLS and authSource to support Atlas and new MongoDB versions.
400407
* **05.09.23:** - Initial release.

0 commit comments

Comments
 (0)