version: '3.8' services: youtubedoc: build: . ports: - "8000:8000" environment: - DEBUG=True - ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0 - SEARCHAPI_API_KEY=${SEARCHAPI_API_KEY:-} volumes: - .:/app restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s # Optional: Redis for caching (uncomment if needed) # redis: # image: redis:7-alpine # ports: # - "6379:6379" # restart: unless-stopped networks: default: name: youtubedoc-network