version:'3.8'services:qbit-guard:image:ghcr.io/gengines/qbit-guard:latestcontainer_name:qbit-guardrestart:unless-stoppedenvironment:-QBIT_HOST=http://qbittorrent:8080-QBIT_USER=admin-QBIT_PASS=your_password_here-QBIT_ALLOWED_CATEGORIES=tv-sonarr,radarr# Fast polling and processing-WATCH_POLL_SECONDS=1.0-WATCH_PROCESS_EXISTING_AT_START=1# Aggressive timeouts for faster failure detection-SONARR_TIMEOUT_SEC=90-RADARR_TIMEOUT_SEC=90-TVMAZE_TIMEOUT_SEC=15-TVDB_TIMEOUT_SEC=15# More retries for reliability-SONARR_RETRIES=5-RADARR_RETRIES=5# Quick metadata fetching-METADATA_MAX_WAIT_SEC=60-METADATA_DOWNLOAD_BUDGET_BYTES=52428800# 50MB# Enable all checks-ENABLE_PREAIR_CHECK=1-ENABLE_ISO_CHECK=1-SONARR_URL=http://sonarr:8989-SONARR_APIKEY=your_sonarr_api_key_here-LOG_LEVEL=INFOnetworks:[arr-network]deploy:resources:limits:memory:256Mcpus:'0.5'networks:arr-network:{ driver:bridge}
Resource Usage
High-performance settings will use more CPU and network resources. Monitor system performance.
environment:-QBIT_HOST=http://qbittorrent:8080-QBIT_USER=admin-QBIT_PASS=your_password_here-QBIT_ALLOWED_CATEGORIES=tv-sonarr# Pre-air checking for TV shows-ENABLE_PREAIR_CHECK=1-SONARR_URL=http://sonarr:8989-SONARR_APIKEY=your_sonarr_api_key_here-EARLY_GRACE_HOURS=6-EARLY_HARD_LIMIT_HOURS=72# Internet verification for better accuracy-INTERNET_CHECK_PROVIDER=tvmaze# Disable ISO check (not needed for TV shows)-ENABLE_ISO_CHECK=0-LOG_LEVEL=INFO
TV-Focused
This configuration focuses on TV show management with Sonarr integration and pre-air checking.
environment:-QBIT_HOST=http://qbittorrent:8080-QBIT_USER=admin-QBIT_PASS=your_password_here-QBIT_ALLOWED_CATEGORIES=radarr# No pre-air checking (movies don't have air dates)-ENABLE_PREAIR_CHECK=0# Enable ISO cleanup for movie disc images-ENABLE_ISO_CHECK=1-MIN_KEEPABLE_VIDEO_MB=100# Radarr integration for blocklisting-RADARR_URL=http://radarr:7878-RADARR_APIKEY=your_radarr_api_key_here# Strict extension filtering for movies-GUARD_EXT_STRATEGY=allow-GUARD_ALLOWED_EXTS=mkv,mp4,m4v,avi,ts,m2ts,mov,webm-GUARD_EXT_DELETE_IF_ANY_BLOCKED=1-LOG_LEVEL=INFO
Movie Focus
Optimized for movie downloads with ISO cleanup and strict file type filtering.
environment:# Dry run mode - no actual deletions-QBIT_DRY_RUN=1# Debug logging for troubleshooting-LOG_LEVEL=DEBUG# Fast polling for immediate testing-WATCH_POLL_SECONDS=1.0# Process existing torrents on startup-WATCH_PROCESS_EXISTING_AT_START=1# Short timeouts to fail fast during testing-SONARR_TIMEOUT_SEC=10-RADARR_TIMEOUT_SEC=10# Minimal metadata wait time-METADATA_MAX_WAIT_SEC=30# Standard connection settings-QBIT_HOST=http://qbittorrent:8080-QBIT_USER=admin-QBIT_PASS=your_password_here-QBIT_ALLOWED_CATEGORIES=tv-sonarr,radarr# Enable features for testing-ENABLE_PREAIR_CHECK=1-ENABLE_ISO_CHECK=1-SONARR_URL=http://sonarr:8989-SONARR_APIKEY=your_sonarr_api_key_here
Dry Run Mode
This configuration runs in dry-run mode and won't actually delete torrents. Perfect for testing.