diff --git a/src/docker-compose.prod.yml b/src/docker-compose.prod.yml index 573ca06..a8e6613 100644 --- a/src/docker-compose.prod.yml +++ b/src/docker-compose.prod.yml @@ -4,20 +4,17 @@ services: db: build: 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