Merge pull request #60 from dkaygithub/main

Update readme-vars.yml
This commit is contained in:
Adam 2024-06-23 12:57:40 +01:00 committed by GitHub
commit 7c4f706ff3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -93,6 +93,12 @@ app_setup_block: |
EOF
```
If you are using the Mongo v4 (the latest which does not require AVX):
```js
db.getSiblingDB("MONGO_DBNAME").createUser({user: "MONGO_USER", pwd: "MONGO_PASS", roles: [{role: "dbOwner", db: "MONGO_DBNAME"}, {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.
For example: