From babaee954193a7dd0fe45cc4c803a620e53822d0 Mon Sep 17 00:00:00 2001 From: LinuxServer-CI Date: Tue, 7 Nov 2023 19:25:25 +0000 Subject: [PATCH] Bot Updating Documentation --- docs/images/docker-unifi-network-application.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/images/docker-unifi-network-application.md b/docs/images/docker-unifi-network-application.md index 1e55b6efe..549693aa4 100755 --- a/docs/images/docker-unifi-network-application.md +++ b/docs/images/docker-unifi-network-application.md @@ -48,7 +48,8 @@ Formally only mongodb 3.6 through 4.4 are supported, however, it has been report If you are using the [official mongodb container](https://hub.docker.com/_/mongo/), you can create your user using an `init-mongo.js` file with the following contents: ```js -db.getSiblingDB("MONGO_DBNAME").createUser({user: "MONGO_USER", pwd: "MONGO_PASS", roles: [{role: "dbOwner", db: "MONGO_DBNAME"}, {role: "dbOwner", db: "MONGO_DBNAME_stat"}]}); +db.getSiblingDB("MONGO_DBNAME").createUser({user: "MONGO_USER", pwd: "MONGO_PASS", roles: [{role: "dbOwner", db: "MONGO_DBNAME"}]}); +db.getSiblingDB("MONGO_DBNAME_stat").createUser({user: "MONGO_USER", pwd: "MONGO_PASS", roles: [{role: "dbOwner", db: "MONGO_DBNAME_stat"}]}); ``` Being sure to replace the placeholders with the same values you supplied to the Unifi container, and mount it into your *mongodb* container.