Add prod env to docker-compose

This commit is contained in:
Kasper Juul Hermansen 2021-11-14 19:08:30 +01:00
parent 310bc219b5
commit f8b1d0c36a
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -6,18 +6,17 @@ services:
context: backend/db context: backend/db
ports: ports:
- 27017:27017 - 27017:27017
environment: env_file:
MONGO_INITDB_ROOT_USERNAME: root - .prod.env
MONGO_INITDB_ROOT_PASSWORD: example
server: server:
build: build:
context: backend/server context: backend/server
ports: ports:
- 5000:80 - 5000:80
env_file:
- .prod.env
environment: environment:
MONGODB__Username: root
MONGODB__Password: example
MONGODB__Host: db MONGODB__Host: db
MONGODB__Port: 27017 MONGODB__Port: 27017
MONGODB__Database: todo MONGODB__Database: todo