system-pri/docker-compose.prod.yaml

42 lines
780 B
YAML
Raw Normal View History

version: '3.3'
services:
backend_service:
build:
context: ./backend
dockerfile: ./Dockerfile.prod
command: gunicorn -w 4 --bind 0.0.0.0:5000 main:app
# command: flask run --host 0.0.0.0 --port 5000
volumes:
- "./db_data:/app/backend/db.sqlite"
environment:
- FLASK_APP=main.py
- FLASK_ENV=production
- ENABLE_CORS=1
expose:
- 5000
ports:
- "5000:5000"
# nginx_server:
# build:
# context: ./backend
# dockerfile: ./Dockerfile.nginx.prod
# depends_on:
# - backend_service
# ports:
# - "6666:80"
nginx_client:
build:
context: ./frontend
dockerfile: ./Dockerfile.prod
# depends_on:
# - nginx_server
ports:
2023-01-09 20:35:41 +01:00
- "80:80"
volumes:
db_data: