16 lines
377 B
YAML
16 lines
377 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
web:
|
|
build: .
|
|
ports:
|
|
- "5001:5001"
|
|
environment:
|
|
- FLASK_ENV=production
|
|
- FLASK_SECRET_KEY=${FLASK_SECRET_KEY}
|
|
- SQLALCHEMY_DATABASE_URI=sqlite:////app/instance/database.db
|
|
volumes:
|
|
- ./instance:/app/instance
|
|
command: >
|
|
sh -c "flask init-db && gunicorn --bind 0.0.0.0:5001 --workers 4 app:app"
|