-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
qbittorrent.yml
62 lines (61 loc) · 2.89 KB
/
qbittorrent.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# qBittorrent - https://hub.docker.com/r/hotio/qbittorrent
#
# Don't forget to create the directory, change chown command if needed (the user:group part)
# sudo -u docker mkdir -m=00775 /volume1/docker/appdata/qbittorrent
#
# If you want to use VPN follow the instructions below.
# To enable VPN set "VPN_ENABLED=true" in the .env, and uncomment the 'devices' section below. If you don't want VPN enabled set "VPN_ENABLED=false"
# Start the container, and in your /appdata/qbittorrent a wireguard folder will be created where you need to place your wg0.conf file you got from your VPN provider and rename it to wg0-fix.conf
# Remove the `DNS = 1.1.1.1` line from the wg0.conf
# Remove any preexisting preup or postup from your wg0.conf file
# Restart qbittorrent after you made the changes to wg0 config file.
#
# If you are getting a "Failed to open '/dev/net/tun'" error, run the commands below.
# 1 - sudo curl -sL https://raw.githubusercontent.com/TRaSH-/Guides-Synology-Templates/main/script/tun.service -o "/etc/systemd/system/tun.service"
# 2"- sudo systemctl enable /etc/systemd/system/tun.service
# 3 - sudo systemctl start tun
# Check if running with - sudo systemctl status tun
# recreate the container with - sudo docker-compose up --force-recreate qbittorrent
qbittorrent:
container_name: qbittorrent
image: hotio/qbittorrent:latest
restart: unless-stopped
logging:
driver: json-file
options:
max-file: ${DOCKERLOGGING_MAXFILE}
max-size: ${DOCKERLOGGING_MAXSIZE}
labels:
- org.hotio.pullio.update=${PULLIO_UPDATE}
- org.hotio.pullio.notify=${PULLIO_NOTIFY}
- org.hotio.pullio.discord.webhook=${PULLIO_DISCORD_WEBHOOK}
ports:
- ${QBITTORRENT_WEBUI_PORT}:${QBITTORRENT_WEBUI_PORT}
- ${QBITTORRENT_PRIVOXY_PORT}:${QBITTORRENT_PRIVOXY_PORT}
cap_add:
- NET_ADMIN
# devices: # Optional, uncomment if you use VPN
# - /dev/net/tun:/dev/net/tun # Optional, uncomment if you use VPN
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
- net.ipv6.conf.all.disable_ipv6=1 # Optional, if you want to use ipv6, remove this line. If you keep this line, make sure there is no ipv6 in your wg0.conf.
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- UMASK=002
- VPN_ENABLED=${VPN_ENABLED}
- VPN_FIREWALL_TYPE=legacy
- VPN_PROVIDER=${VPN_PROVIDER}
- VPN_LAN_NETWORK=${LAN_NETWORK}
- VPN_CONF=wg0-fix
- VPN_AUTO_PORT_FORWARD=${PORT_FORWARD}
- PRIVOXY_ENABLED=${QBITTORRENT_ENABLE_PRIVOXY}
- WEBUI_PORTS=${QBITTORRENT_WEBUI_PORT}/tcp,${QBITTORRENT_WEBUI_PORT}/udp # Optional only needed if you want to change the default 8080 WebUI port
dns:
- 1.1.1.1
- 8.8.8.8
volumes:
- /etc/localtime:/etc/localtime:ro
- ${DOCKERCONFDIR}/qbittorrent:/config:rw
- ${DOCKERSTORAGEDIR}/torrents:/data/torrents:rw