Changed the docker-compose files so that everything works

This commit is contained in:
cami 2021-05-27 00:31:38 +02:00
parent e5d95083f6
commit 9386e5bb3d
2 changed files with 18 additions and 16 deletions

View file

@ -1,10 +1,10 @@
version: '3.7' version: '3.7'
services: services:
hello-world-prod: frontend_bt_prod:
container_name: hello_world_cl_prod container_name: frontend_bt_prod
build: build:
context: ./frontend context: ./frontend
dockerfile: Dockerfile.prod dockerfile: Dockerfile.prod
ports: ports:
- 3000:80 - 8877:80

View file

@ -7,20 +7,22 @@ services:
context: ./frontend context: ./frontend
dockerfile: Dockerfile dockerfile: Dockerfile
tty: true tty: true
volumes:
- "./frontend:/app:z"
ports: ports:
- 3000:3000 - 3000:3000
environment: environment:
- CHOKIDAR_USEPOLLING=true - CHOKIDAR_USEPOLLING=true
# backend-dev: backend-dev:
# container_name: backend_bt container_name: backend_bt
# build: build:
# context: ./backend context: ./backend
# dockerfile: Dockerfile dockerfile: Dockerfile
# tty: true tty: true
# volumes: volumes:
# - ./backend:/usr/src/app/ - ./backend:/usr/src/app/
# ports: ports:
# - 5000:5000 - 5000:5000
# environment: environment:
# PORT: 5000 PORT: 5000
# FLASK_DEBUG: 1 FLASK_DEBUG: 1