Commit 4d86a60d authored by Timo Bechtel's avatar Timo Bechtel
Browse files

chore(env): update env variables

parent 50c01caa
......@@ -2,28 +2,24 @@ version: "3"
services:
booking-service:
build: .
networks:
- db-network
depends_on:
- "mongo"
volumes:
- .:/app
working_dir: /app
ports:
- 8080:8080
environment:
MONGO_URL: ${MONGO_URL}
MONGO_DB: ${MONGO_DB}
mongo:
image: mongo:latest
container_name: mongo
networks:
- db-network
volumes:
- dbdata:/data/db
ports:
- 27017:27017
networks:
db-network:
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
MONGO_INITDB_DATABASE: ${MONGO_DB}
volumes:
dbdata:
MONGO_URL=mongodb://root:demo@mongo:27017
MONGO_DB=booking_service
MONGO_USERNAME=root
MONGO_PASSWORD=demo
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment