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
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
env_file:
- .prod.env
server:
build:
context: backend/server
ports:
- 5000:80
env_file:
- .prod.env
environment:
MONGODB__Username: root
MONGODB__Password: example
MONGODB__Host: db
MONGODB__Port: 27017
MONGODB__Database: todo