| 1 | services: |
| 2 | qbittorrent: |
| 3 | image: ghcr.io/hotio/qbittorrent:latest |
| 4 | container_name: qBittorrent-GlueTUN |
| 5 | security_opt: |
| 6 | - no-new-privileges:true |
| 7 | healthcheck: |
| 8 | test: ["CMD-SHELL", "curl -f http://localhost:8080 || exit 1"] |
| 9 | interval: 30s |
| 10 | timeout: 10s |
| 11 | retries: 3 |
| 12 | start_period: 60s |
| 13 | cap_add: |
| 14 | - NET_ADMIN |
| 15 | sysctls: |
| 16 | - net.ipv4.conf.all.src_valid_mark=1 |
| 17 | - net.ipv6.conf.all.disable_ipv6=1 |
| 18 | ports: |
| 19 | - 9090:8080 |
| 20 | environment: |
| 21 | - PUID=1026 # https://mariushosting.com/synology-find-uid-userid-and-gid-groupid-in-5-seconds/ |
| 22 | - PGID=100 # https://mariushosting.com/synology-find-uid-userid-and-gid-groupid-in-5-seconds/ |
| 23 | - TZ=Europe/Bucharest # https://timezone.mariushosting.com/ |
| 24 | - VPN_ENABLED=true #or false |
| 25 | - VPN_CONF= |
| 26 | - VPN_PROVIDER= |
| 27 | - VPN_LAN_NETWORK= |
| 28 | - VPN_LAN_LEAK_ENABLED= |
| 29 | - VPN_AUTO_PORT_FORWARD= |
| 30 | - VPN_KEEP_LOCAL_DNS= |
| 31 | - VPN_FIREWALL_TYPE= |
| 32 | - VPN_HEALTHCHECK_ENABLED= |
| 33 | - LocalHostAuth= |
| 34 | - PRIVOXY_ENABLED= |
| 35 | - UNBOUND_ENABLED= |
| 36 | volumes: |
| 37 | - /mnt/StoragePool/docker/qbittorrent/config:/config:rw |
| 38 | - /mnt/StoragePool/docker/qbittorrent/downloads:/downloads:rw |
| 39 | devices: |
| 40 | - /dev/net/tun:/dev/net/tun |
| 41 | restart: on-failure:5 |
mariushosting / qbitorrentGlueTUN.yml
Last active 2 months ago