Bot Updating Documentation

pull/229/head
LinuxServer-CI 2024-06-23 12:00:46 +00:00
rodzic 623d64dca5
commit 0ac65aa3c1
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -73,6 +73,12 @@ db.createUser({
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: