From 9386e5bb3d0d1b59c5c0e303ee49234871cb87b1 Mon Sep 17 00:00:00 2001 From: cami Date: Thu, 27 May 2021 00:31:38 +0200 Subject: [PATCH] Changed the docker-compose files so that everything works --- docker-compose.prod.yml | 6 +++--- docker-compose.yml | 28 +++++++++++++++------------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index d7eabfb..b67cb2c 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -1,10 +1,10 @@ version: '3.7' services: - hello-world-prod: - container_name: hello_world_cl_prod + frontend_bt_prod: + container_name: frontend_bt_prod build: context: ./frontend dockerfile: Dockerfile.prod ports: - - 3000:80 + - 8877:80 diff --git a/docker-compose.yml b/docker-compose.yml index 88b0993..2e20a3f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,20 +7,22 @@ services: context: ./frontend dockerfile: Dockerfile tty: true + volumes: + - "./frontend:/app:z" ports: - 3000:3000 environment: - CHOKIDAR_USEPOLLING=true -# backend-dev: -# container_name: backend_bt -# build: -# context: ./backend -# dockerfile: Dockerfile -# tty: true -# volumes: -# - ./backend:/usr/src/app/ -# ports: -# - 5000:5000 -# environment: -# PORT: 5000 -# FLASK_DEBUG: 1 + backend-dev: + container_name: backend_bt + build: + context: ./backend + dockerfile: Dockerfile + tty: true + volumes: + - ./backend:/usr/src/app/ + ports: + - 5000:5000 + environment: + PORT: 5000 + FLASK_DEBUG: 1 -- 2.45.2