keyserver/mongo-init.js
Jakub Filo 7adfc6aa1d
All checks were successful
Build & publish images / build-and-push-image (push) Successful in 24s
Add docker-compose
2023-06-19 07:41:58 +00:00

13 lines
321 B
JavaScript

db.createUser(
{
user: process.env.MONGO_INITDB_ROOT_USERNAME,
pwd: process.env.MONGO_INITDB_ROOT_PASSWORD,
roles: [
{
role: "readWrite",
db: process.env.MONGO_INITDB_DATABASE
}
]
}
);