Skip to content

Commit

Permalink
Add environment variables for MongoDB configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne committed Feb 5, 2024
1 parent e5df905 commit 4323fa9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ services:
- ./back:/back/src
networks:
- web
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
- MONGO_INITDB_DATABASE=${MONGO_INITDB_DATABASE}
- MONGODB_USER=${MONGODB_USER}
- MONGODB_USER_PASSWORD=${MONGODB_USER_PASSWORD}

front:
depends_on:
Expand All @@ -64,6 +70,12 @@ services:
- "traefik.http.services.front.loadbalancer.server.port=3000"
networks:
- web
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
- MONGO_INITDB_DATABASE=${MONGO_INITDB_DATABASE}
- MONGODB_USER=${MONGODB_USER}
- MONGODB_USER_PASSWORD=${MONGODB_USER_PASSWORD}

networks:
web:

0 comments on commit 4323fa9

Please sign in to comment.