RODY/docker-compose.yml

24 lines
484 B
YAML
Raw Normal View History

2022-11-04 17:37:08 +08:00
version: '3'
services:
app:
image: qdxkrs/flask-demo-core:latest
restart: always
ports:
- 5000:5000
environment:
- LANG=C.UTF-8
- FLASK_APP=app/run.py
- FLASK_ENV=production
volumes:
- ./logs:/logs
- ./:/app
networks:
- web_nw
command:
bash -c "flask db upgrade &&
gunicorn --log-config configs/gunicorn-logging.ini -k gevent -w 4 -b 0.0.0.0:5000 app.run:app"
networks:
web_nw:
driver: bridge