version: '3.8' services: chess-analyst: build: . container_name: chess-analyst-web ports: - "5000:5000" volumes: - ./examples:/app/examples:ro - ./analysis_results:/app/analysis_results environment: - FLASK_ENV=production - STOCKFISH_PATH=/usr/games/stockfish restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:5000/api/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s