24 lines
484 B
YAML
24 lines
484 B
YAML
|
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
|