Skip to content

Commit

Permalink
fix: remove MONGO_INIT_ROOT_USERNAME/PASSWORD as it breaks the dev wo…
Browse files Browse the repository at this point in the history
…rkflow" (#6127)

* Remove MONGO_INIT_ROOT_USERNAME and password

* remove username / password in dev
  • Loading branch information
Olivier Cervello committed Nov 29, 2021
1 parent e156c1c commit 494e0c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions docker/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ services:
mongodb:
image: mongo:4.4
command: mongod --wiredTigerCacheSizeGB ${MONGODB_CACHE_SIZE}
environment:
- MONGO_INITDB_ROOT_USERNAME
- MONGO_INITDB_ROOT_PASSWORD
networks:
- webnet
ports:
Expand Down
5 changes: 1 addition & 4 deletions docker/mongodb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@ services:
command: mongod --wiredTigerCacheSizeGB ${MONGODB_CACHE_SIZE}
volumes:
- dbdata:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME
- MONGO_INITDB_ROOT_PASSWORD
ports:
- 27017:27017
networks:
- db
mongodb_exporter:
image: bitnami/mongodb-exporter:0
command: mongodb_exporter --discovering-mode --mongodb.uri=mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@${MONGODB_HOST}:27017/admin?ssl=true
command: mongodb_exporter --discovering-mode --mongodb.uri=mongodb://${MONGODB_HOST}:27017/admin?ssl=true
ports:
- 9216:9216
networks:
Expand Down

0 comments on commit 494e0c5

Please sign in to comment.