TodoSystemMicroService-NodeJS/infra/docker/mongo-init-scripts/init.js.example

7 lines
133 B
Text
Raw Permalink Normal View History

2023-07-07 22:54:57 +00:00
db = db.getSiblingDB('user_db');
db.createUser({
user: "user",
pwd: "12345",
roles: [{ role: "readWrite", db: "user_db" }]
});