Files
kennethreitz.org/docker-compose.yml
T
2025-09-05 12:26:32 -04:00

29 lines
874 B
YAML

version: '3.8'
services:
web:
build: .
ports:
- "8000:8000"
volumes:
- .:/app
environment:
- FLASK_ENV=development
- DISABLE_ANALYTICS=true
restart: unless-stopped
# Use single worker for local development with markdown file watching
command: ["gunicorn", "--bind", "0.0.0.0:8000", "--worker-class", "gevent", "--workers", "1", "--worker-connections", "1000", "--timeout", "60", "--reload", "--reload-extra-file", "./data", "--reload-extra-file", "./templates", "engine:app"]
# Alternative dev configuration - uncomment to use Flask dev server
# web-dev:
# build: .
# ports:
# - "8000:8000"
# volumes:
# - .:/app
# - /app/.venv
# environment:
# - FLASK_ENV=development
# - FLASK_DEBUG=1
# restart: unless-stopped
# command: ["uv", "run", "python", "engine.py"]