Files
webshare-api/compose.yaml
Michal Pemcak 798d7d7251 Support Webshare guest downloads without login.
Credentials optional: empty WEBSHARE_* uses file_link without wst (free CDN). Verified against live API; docs and tests updated. Includes cancel→dequeue fix for queued downloads.
2026-08-07 11:31:19 +02:00

22 lines
841 B
YAML

services:
webshare-api:
build: .
ports:
- "${PORT:-3001}:3001"
environment:
PORT: "3001"
BASE_URL: ${BASE_URL:-http://webshare-api:3001}
# Optional — omit both for guest/free downloads (slower CDN)
WEBSHARE_USERNAME: ${WEBSHARE_USERNAME:-}
WEBSHARE_PASSWORD: ${WEBSHARE_PASSWORD:-}
DOWNLOAD_PATH: ${DOWNLOAD_PATH:-/downloads/webshare}
MEDIA_ROOT: ${MEDIA_ROOT:-/data}
MAX_CONCURRENT_DOWNLOADS: ${MAX_CONCURRENT_DOWNLOADS:-2}
SONARR_URL: ${SONARR_URL:-http://sonarr:8989}
SONARR_API_KEY: ${SONARR_API_KEY:-}
SONARR_SEARCH_INTERVAL_HOURS: ${SONARR_SEARCH_INTERVAL_HOURS:-2}
volumes:
# Mount the download directory used by the fake qBittorrent client
- ${DOWNLOAD_HOST_PATH:-./data/webshare}:/downloads/webshare
restart: unless-stopped