- Add docker-compose.yml for qBittorrent container setup - Add config directory with qBittorrent configuration files - Include GeoDB, RSS feeds, categories, and watched folders config
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
# DEPLOYMENT LOCATION: /opt/docker/qbittorrent/docker-compose.yml
|
|
# Deploy with: sudo mkdir -p /opt/docker/qbittorrent && sudo cp config/docker/qbittorrent/docker-compose.yml /opt/docker/qbittorrent/
|
|
# Start with: cd /opt/docker/qbittorrent && sudo docker-compose up -d
|
|
|
|
services:
|
|
qbittorrent:
|
|
image: linuxserver/qbittorrent:latest
|
|
container_name: qbittorrent
|
|
restart: unless-stopped
|
|
|
|
# User and group IDs to match host user (hoborg)
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=Europe/Prague
|
|
- WEBUI_PORT=8080
|
|
|
|
# Network - bind to localhost only for reverse proxy
|
|
ports:
|
|
- "127.0.0.1:8080:8080" # Web UI
|
|
- "6881:6881" # BitTorrent TCP
|
|
- "6881:6881/udp" # BitTorrent UDP
|
|
|
|
# Volume mounts
|
|
volumes:
|
|
# qBittorrent configuration
|
|
- /opt/docker/qbittorrent/config:/config
|
|
|
|
# Torrent storage on NAS
|
|
- /mnt/nas/torrent:/downloads
|
|
|
|
# Memory limits for container stability
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 1G
|
|
reservations:
|
|
memory: 256M |