version: '3.8' services: web: build: . ports: - "5001:5001" environment: - FLASK_APP=app.py - FLASK_ENV=production restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:5000/"] interval: 30s timeout: 10s retries: 3 start_period: 5s