Merge pull request #3058 from GautierDele/master

 Add mongo crendentials to environment
This commit is contained in:
Shao Yu-Lung (Allen)
2021-09-22 17:25:33 +08:00
committed by GitHub
3 changed files with 6 additions and 1 deletions

View File

@ -658,6 +658,9 @@ services:
build: ./mongo
ports:
- "${MONGODB_PORT}:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
volumes:
- ${DATA_PATH_HOST}/mongo:/data/db
- ${DATA_PATH_HOST}/mongo_config:/data/configdb