Merge pull request 'Changed the docker-compose files so that everything works' (#7) from docker/compose-fix into main

Reviewed-on: #7
This commit is contained in:
cami 2021-05-26 22:34:33 +00:00
commit c23ba06f98
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