mirror of
https://github.com/calibrain/shelfmark.git
synced 2026-09-24 20:40:27 +01:00
- Updated Selenium to 4.45.6. Includes various crash and memory leak fixes, plus new bypasser methods - Bypasser now uses CDP captcha solving as priority - Faster, more efficient, no PyAutoGUI needed. Fallback to existing methods. - Better detection and cleanup of old Selenium instances to save memory. - Added Hardcover graphQL API header detection - Added AA download counts in details modal - More robust switching of internal/external bypasser, fixed settings UI toggle behavior.
153 lines
4.7 KiB
YAML
153 lines
4.7 KiB
YAML
# Test stack for download client development
|
|
# Includes cwabd + all download clients on same network with shared volumes
|
|
#
|
|
# Usage:
|
|
# docker compose -f docker-compose.test-clients.yml up -d
|
|
# # Access cwabd at http://localhost:8084
|
|
# # Configure clients in Settings > Prowlarr > Download Clients
|
|
#
|
|
# Web UIs:
|
|
# - cwabd: http://localhost:8084
|
|
# - qBittorrent: http://localhost:8080 (admin / adminadmin - check logs for temp password)
|
|
# - Transmission: http://localhost:9091 (admin / admin)
|
|
# - Deluge: http://localhost:8112 (password: deluge)
|
|
# - NZBGet: http://localhost:6789 (nzbget / tegbzn6789)
|
|
# - SABnzbd: http://localhost:8085 (complete setup wizard for API key)
|
|
#
|
|
# Hot-reload: Python code changes are picked up automatically (source mounted)
|
|
# Rebuild needed only for: requirements changes, frontend changes, Dockerfile changes
|
|
|
|
services:
|
|
# ============ MAIN APPLICATION ============
|
|
|
|
cwabd:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: cwa-bd
|
|
container_name: test-cwabd
|
|
environment:
|
|
TZ: UTC
|
|
DEBUG: "true"
|
|
# All client configuration is done via Settings UI
|
|
# Use Docker service names for URLs:
|
|
# - Transmission: http://transmission:9091
|
|
# - Deluge host: deluge (port 58846)
|
|
# - SABnzbd: http://sabnzbd:8080
|
|
ports:
|
|
- "8084:8084"
|
|
volumes:
|
|
# Config and state
|
|
- ./.local/test-clients/cwabd/config:/config
|
|
- ./.local/test-clients/cwabd/log:/var/log/cwa-book-downloader
|
|
# Ingest directory (where completed books go)
|
|
- ./.local/test-clients/ingest:/cwa-book-ingest
|
|
# Staging directory
|
|
- ./.local/test-clients/tmp:/tmp/cwa-book-downloader
|
|
# CRITICAL: Mount client download directories so cwabd can access completed files
|
|
- ./.local/test-clients/downloads:/downloads
|
|
# Mount source code for hot-reload (no rebuild needed for Python changes)
|
|
- ./cwa_book_downloader:/app/cwa_book_downloader:ro
|
|
# Mount tests for running pytest in container
|
|
- ./tests:/app/tests:ro
|
|
- ./pyproject.toml:/app/pyproject.toml:ro
|
|
# Mount client configs for integration tests to read credentials
|
|
- ./.local/test-clients/qbittorrent/config:/qbittorrent-config:ro
|
|
- ./.local/test-clients/sabnzbd/config:/sabnzbd-config:ro
|
|
depends_on:
|
|
- nzbget
|
|
- sabnzbd
|
|
- qbittorrent
|
|
- transmission
|
|
- deluge
|
|
restart: unless-stopped
|
|
|
|
# ============ USENET CLIENTS ============
|
|
|
|
nzbget:
|
|
image: lscr.io/linuxserver/nzbget:latest
|
|
container_name: test-nzbget
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=UTC
|
|
volumes:
|
|
- ./.local/test-clients/nzbget/config:/config
|
|
- ./.local/test-clients/downloads:/downloads
|
|
- ./.local/test-clients/nzbget/custom-cont-init.d:/custom-cont-init.d:ro
|
|
ports:
|
|
- "6789:6789" # Web UI / JSON-RPC
|
|
restart: unless-stopped
|
|
|
|
sabnzbd:
|
|
image: lscr.io/linuxserver/sabnzbd:latest
|
|
container_name: test-sabnzbd
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=UTC
|
|
volumes:
|
|
- ./.local/test-clients/sabnzbd/config:/config
|
|
- ./.local/test-clients/downloads:/downloads
|
|
ports:
|
|
- "8085:8080" # Web UI (external:internal)
|
|
restart: unless-stopped
|
|
|
|
# ============ TORRENT CLIENTS ============
|
|
|
|
qbittorrent:
|
|
image: lscr.io/linuxserver/qbittorrent:latest
|
|
container_name: test-qbittorrent
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=UTC
|
|
- WEBUI_PORT=8080
|
|
volumes:
|
|
- ./.local/test-clients/qbittorrent/config:/config
|
|
- ./.local/test-clients/downloads:/downloads
|
|
- ./.local/test-clients/qbittorrent/custom-cont-init.d:/custom-cont-init.d:ro
|
|
ports:
|
|
- "8080:8080" # Web UI / API
|
|
- "6882:6881"
|
|
- "6882:6881/udp"
|
|
restart: unless-stopped
|
|
|
|
transmission:
|
|
image: lscr.io/linuxserver/transmission:latest
|
|
container_name: test-transmission
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=UTC
|
|
- USER=admin
|
|
- PASS=admin
|
|
volumes:
|
|
- ./.local/test-clients/transmission/config:/config
|
|
- ./.local/test-clients/downloads:/downloads
|
|
ports:
|
|
- "9091:9091" # Web UI / RPC
|
|
- "51413:51413"
|
|
- "51413:51413/udp"
|
|
restart: unless-stopped
|
|
|
|
deluge:
|
|
image: lscr.io/linuxserver/deluge:latest
|
|
container_name: test-deluge
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=UTC
|
|
- DELUGE_LOGLEVEL=error
|
|
volumes:
|
|
- ./.local/test-clients/deluge/config:/config
|
|
- ./.local/test-clients/downloads:/downloads
|
|
ports:
|
|
- "8112:8112" # Web UI
|
|
- "58846:58846" # Daemon RPC
|
|
- "6881:6881"
|
|
- "6881:6881/udp"
|
|
restart: unless-stopped
|
|
|
|
# All services automatically on same network (test-clients_default)
|