Specify download path
qbittorrent_download_path="/path/to/dir" # change
docker volume create --opt type=none --opt o=bind --opt device=${qbittorrent_download_path} qbittorrent-download
Create config path
mkdir ./data/qbittorrent/config -p
Create .env
and custom environment variables
cp .env.example .env
vim .env
Boot up Qbittorrent
docker-compose up -d
Update tracker
docker-compose exec qbittorrent /tasks/add_trackers_update.sh
Click & Save
Options > BitTorrent > Automatically add these trackers to new downloads
in WebUI
Task
# Update subscribed trackers from net
# env: qbt_tracker_fetch_urls —— the updated list of public trackers
# env: qbt_tracker_static_urls —— the public trackers that we have known
docker compose exec qbittorrent /tasks/add_trackers_update.sh
# Ban peers by matching pattern
# env: qbt_peer_ban_pattern
docker compose exec qbittorrent /tasks/ban_peers_add.sh
# Clean up ban list of peers
docker compose exec qbittorrent /tasks/ban_peers_clean.sh
# Update torrent trackers: remove unwork and add newly fetched trackers
# env: qbt_trackers_update_torrent_num —— the number of torrents to update trackers
docker compose exec qbittorrent /tasks/torrent_trackers_update.sh
Config
+ ./env —— tasks (and docker) environment
+ ./tasks/config/crontabs/abc —— tasks schedule
Logs
+ docker compose logs -f -t --tail=100
+ ./data/qbittorrent/config/qBittorrent/logs/qbittorrent.log —— qbittorrent application runtime log