-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
42 lines (42 loc) · 1.63 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
version: "3"
services:
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
environment:
- PUID=${QB_PUID:-1000}
- PGID=${QB_PGID:-1000}
- TZ=${QB_TZ:-Etc/UTC}
- WEBUI_PORT=${QB_PORT_WEBUI:-8080}
- DOCKER_MODS=linuxserver/mods:universal-cron
# cron task
- qbt_host=${QB_HOST:-http://127.0.0.1}
- qbt_port=${QB_PORT_WEBUI:-8080}
- qbt_username=${QB_USERNAME:-admin}
- qbt_password=${QB_PASSWORD:-adminadmin}
- qbt_tracker_fetch_urls=${QB_TRACKER_FETCH_URLS:-https://cf.trackerslist.com/best.txt}
- qbt_tracker_fetch_protocols=${QB_TRACKER_FETCH_PROTOCOLS:-udp|http|https}
- qbt_tracker_static_urls=${QB_TRACKER_STATIC_URLS:-}
- qbt_peer_ban_pattern=${QB_PEER_BAN_PATTERN:-Xunlei|\-XL} # grep -E
- qbt_trackers_update_torrent_num=${QB_TRACKER_UPDATE_TORRENT_NUM:-10}
- qbt_torrent_pt_tag=${QB_TORRENT_PT_TAG:-pt}
- qbt_torrent_pt_category=${QB_TORRENT_PT_CATEGORY:-pt}
volumes:
- ./data/qbittorrent/config:/config
- qbittorrent-download:/downloads
# cron task
- ./qbittorrent-web-api-tools:/qbittorrent-web-api-tools:ro
- ./tasks/config/crontabs/abc:/config/crontabs/abc
- ./tasks/tasks:/tasks:ro
ports:
- ${QB_PORT_WEBUI:-8080}:${QB_PORT_WEBUI:-8080}
- ${QB_PORT_LISTEN:-6881}:${QB_PORT_LISTEN:-6881} # Internet - [Firewall-allow] - [Router-Port_forwarding] - Qbittorrent_listening_port
- ${QB_PORT_LISTEN:-6881}:${QB_PORT_LISTEN:-6881}/udp
restart: unless-stopped
deploy:
resources:
limits:
memory: 2000M
volumes:
qbittorrent-download:
external: true