services: yt-dlp-proxy: build: . ports: - "5000:5000" environment: - PORT=5000 - LOG_LEVEL=INFO - CACHE_TTL=31536000 - SOCKET_TIMEOUT=30 - ALLOWED_DOMAINS=youtube.com,youtu.be,pornhub.com,xvideos.com restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:5000/"] interval: 30s timeout: 10s retries: 3 start_period: 10s # Optional: nginx reverse proxy configuration # Uncomment to enable # # nginx: # image: nginx:latest # ports: # - "80:80" # - "443:443" # volumes: # - ./nginx.conf:/etc/nginx/nginx.conf:ro # depends_on: # - yt-dlp-proxy