Skip to content

Commit 38b0c4f

Browse files
authored
Update readme-vars.yml
1 parent cc7a9f0 commit 38b0c4f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

readme-vars.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ app_setup_block: |
7272
db.getSiblingDB("MONGO_DBNAME_stat").createUser({user: "MONGO_USER", pwd: "MONGO_PASS", roles: [{role: "dbOwner", db: "MONGO_DBNAME_stat"}]});
7373
```
7474
75+
If you are using the Mongo v4 (the latest which does not require AVX):
76+
77+
```js
78+
db.getSiblingDB("MONGO_DBNAME").createUser({user: "MONGO_USER", pwd: "MONGO_PASS", roles: [{role: "dbOwner", db: "MONGO_DBNAME"}, {role: "dbOwner", db: "MONGO_DBNAME_stat"}]});
79+
```
80+
7581
Being sure to replace the placeholders with the same values you supplied to the Unifi container, and mount it into your *mongodb* container.
7682
7783
For example:

0 commit comments

Comments
 (0)