Skip to content

Commit f8b5540

Browse files
Bot Updating Templated Files
1 parent 7c4f706 commit f8b5540

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ db.createUser({
9696
EOF
9797
```
9898

99+
If you are using the Mongo v4 (the latest which does not require AVX):
100+
101+
```js
102+
db.getSiblingDB("MONGO_DBNAME").createUser({user: "MONGO_USER", pwd: "MONGO_PASS", roles: [{role: "dbOwner", db: "MONGO_DBNAME"}, {role: "dbOwner", db: "MONGO_DBNAME_stat"}]});
103+
```
104+
99105
Being sure to replace the placeholders with the same values you supplied to the Unifi container, and mount it into your *mongodb* container.
100106

101107
For example:

0 commit comments

Comments
 (0)