update ports

This commit is contained in:
Baptiste Peupier 2022-02-02 13:10:30 +01:00
parent a010524e75
commit cbba65f450
2 changed files with 8 additions and 6 deletions

View file

@ -21,9 +21,9 @@ http {
server frontend:4200; server frontend:4200;
} }
upstream flask-frontend { # upstream flask-frontend {
server flask-frontend:5000; # server flask-frontend:5000;
} # }
server { server {
@ -34,9 +34,9 @@ http {
proxy_pass http://frontend; proxy_pass http://frontend;
} }
location /api { # location /api {
proxy_pass http://flask-frontend; # proxy_pass http://flask-frontend;
} # }
} }
} }

View file

@ -38,6 +38,8 @@ services:
- FLASK_ENV=production - FLASK_ENV=production
- FLASK_DEBUG=0 - FLASK_DEBUG=0
- FLASK_RUN_PORT=5000 - FLASK_RUN_PORT=5000
ports:
- "5000:5000"
networks: networks:
- net - net
depends_on: depends_on: