services: musicfetch-api: build: context: .. dockerfile: server/Dockerfile container_name: musicfetch-api restart: unless-stopped ports: - "6769:6769" environment: LIDARR_URL: "http://lidarr:8686" LIDARR_API_KEY: "${LIDARR_API_KEY}" MUSICFETCH_API_KEY: "${MUSICFETCH_API_KEY}" MUSICFETCH_ROOT: "/media/music" MUSICFETCH_PORT: "6769" # Optional: authenticated YouTube cookies to avoid bot-check / rate limits. # Mount a cookies.txt below and point this at it (in-container path). YTDLP_COOKIES: "${YTDLP_COOKIES:-}" volumes: - /media/music:/media/music # Uncomment and set host path to supply cookies (see YTDLP_COOKIES above): # - /path/to/cookies.txt:/cookies.txt:ro