version: '3.8' services: web: build: . ports: - "8000:8000" volumes: - .:/app environment: - FLASK_ENV=production restart: unless-stopped # Use Gunicorn with gevent workers for better async performance command: ["gunicorn", "--bind", "0.0.0.0:8000", "--worker-class", "gevent", "--workers", "4", "--worker-connections", "1000", "--timeout", "60", "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"]