services: youtube-summarizer-bot: build: . container_name: youtube-summarizer-bot restart: unless-stopped environment: - BOT_TOKEN=${BOT_TOKEN} - GEMINI_API_KEY=${GEMINI_API_KEY} ports: - "8000:8000" # Prometheus metrics - "8080:8080" # Health check healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/health"] interval: 30s timeout: 10s retries: 3 start_period: 10s logging: driver: "json-file" options: max-size: "10m" max-file: "3" # Resource limits deploy: resources: limits: memory: 512M cpus: "0.5" reservations: memory: 256M cpus: "0.25"