This commit is contained in:
Baptiste Peupier 2022-02-02 13:29:25 +01:00
parent 4cd8c65524
commit 2930780766
2 changed files with 18 additions and 14 deletions

View file

@ -1,19 +1,19 @@
version: '3.8'
services:
nginx-front:
image: nginx:latest
volumes:
- ./conf/nginx.conf:/etc/nginx/nginx.conf
- ./logs/nginx:/etc/nginx/logs
- ./cert:/etc/nginx/cert
networks:
- net
ports:
- 80:80
depends_on:
- frontend
- flask-frontend
# nginx-front:
# image: nginx:latest
# volumes:
# - ./conf/nginx.conf:/etc/nginx/nginx.conf
# - ./logs/nginx:/etc/nginx/logs
# - ./cert:/etc/nginx/cert
# networks:
# - net
# ports:
# - 80:80
# depends_on:
# - frontend
# - flask-frontend
frontend:
container_name: frontend
@ -22,6 +22,8 @@ services:
volumes:
- ./src:/data/frontend
- ./node_modules:/data/frontend/node_modules
ports:
- "4200:4200"
environment:
- NODE_ENV=production
networks:
@ -38,6 +40,8 @@ services:
- FLASK_ENV=production
- FLASK_DEBUG=0
- FLASK_RUN_PORT=5000
ports:
- "5000:5000"
networks:
- net
depends_on: