Skip to content

Commit

Permalink
Use env vars for dbInit.js
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Feb 5, 2024
1 parent 92862de commit 72e7c1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/docker/scripts/dbInit.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rs.initiate(config, { force: true });

rs.status();
db.createUser({
user: "root",
pwd: "rootpassword",
user: process.env.MONGO_INITDB_ROOT_USERNAME || "root",
pwd: process.env.MONGO_INITDB_ROOT_PASSWORD || "rootpassword",
roles: [{ role: "root", db: "admin" }],
});

0 comments on commit 72e7c1e

Please sign in to comment.