machine_setup/router/unifi/docker-compose/init_mongo.js
2024-01-09 19:11:39 -05:00

3 lines
239 B
JavaScript

db.getSiblingDB("unifi").createUser({user: "unifi", pwd: "unifipw", roles: [{role: "dbOwner", db: "unifi"}]});
db.getSiblingDB("unifi_stat").createUser({user: "unifi", pwd: "unifipw", roles: [{role: "dbOwner", db: "MONGO_DBNAME_stat"}]});