update rp
This commit is contained in:
parent
06962388a5
commit
c4a6ff1312
3 changed files with 49 additions and 28 deletions
|
|
@ -1,32 +1,19 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
nginx:
|
||||
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:
|
||||
container_name: flask-frontend
|
||||
build: backend
|
||||
command: python -m flask run
|
||||
nginx-front:
|
||||
image: nginx:latest
|
||||
volumes:
|
||||
- ./backend:/data/backend
|
||||
environment:
|
||||
- FLASK_APP=app.py
|
||||
- FLASK_ENV=development
|
||||
- FLASK_DEBUG=0
|
||||
- FLASK_RUN_PORT=5000
|
||||
- ./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
|
||||
|
|
@ -40,6 +27,22 @@ services:
|
|||
networks:
|
||||
- net
|
||||
|
||||
flask-frontend:
|
||||
container_name: flask-frontend
|
||||
build: backend
|
||||
command: python -m flask run
|
||||
volumes:
|
||||
- ./backend:/data/backend
|
||||
environment:
|
||||
- FLASK_APP=app.py
|
||||
- FLASK_ENV=development
|
||||
- FLASK_DEBUG=0
|
||||
- FLASK_RUN_PORT=5000
|
||||
networks:
|
||||
- net
|
||||
depends_on:
|
||||
- frontend
|
||||
|
||||
networks:
|
||||
net:
|
||||
driver: bridge
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue