From f8b1d0c36a0229af7272847edc94ac69e84e5eef Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 14 Nov 2021 19:08:30 +0100 Subject: [PATCH 1/2] Add prod env to docker-compose --- src/docker-compose.prod.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/docker-compose.prod.yml b/src/docker-compose.prod.yml index 573ca06..d31d9a0 100644 --- a/src/docker-compose.prod.yml +++ b/src/docker-compose.prod.yml @@ -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 From 1c8f507a52930632f1378529f13bf803ad4efd84 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 14 Nov 2021 19:11:40 +0100 Subject: [PATCH 2/2] Update with port --- src/docker-compose.prod.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/docker-compose.prod.yml b/src/docker-compose.prod.yml index d31d9a0..a8e6613 100644 --- a/src/docker-compose.prod.yml +++ b/src/docker-compose.prod.yml @@ -4,8 +4,6 @@ services: db: build: context: backend/db - ports: - - 27017:27017 env_file: - .prod.env