Files
homelab-infra/qbittorrent/docker-compose.yml
1jamesthompson1 716baafbc1 AI given structure
2026-03-23 16:06:42 +13:00

62 lines
1.6 KiB
YAML

services:
gluetun:
image: qmcgaw/gluetun
container_name: qbittorrent_gluetun
restart: unless-stopped
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
volumes:
- ${STORAGE_PATH}/qbittorrent/gluetun:/gluetun
- ${STORAGE_PATH}/qbittorrent/wireguard:/gluetun/wireguard
ports:
- "${QBITTORRENT_PORT:-8080}:8080"
- "${JACKETT_PORT:-9117}:9117"
networks:
- qbittorrent
env_file:
- ../.env
- .env
environment:
- VPN_SERVICE_PROVIDER=protonvpn
- VPN_TYPE=wireguard
- VPN_PORT_FORWARDING=on
- TZ=${TZ}
- SERVER_COUNTRIES=New Zealand
- PORT_FORWARD_ONLY=on
- VPN_PORT_FORWARDING_UP_COMMAND=/bin/sh -c 'wget -O- --post-data "json={\"listen_port\":{{PORTS}}}" http://localhost:8080/api/v2/app/setPreferences 2>/dev/null || true'
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
restart: unless-stopped
network_mode: "service:gluetun"
depends_on:
- gluetun
environment:
- TZ=${TZ}
- WEBUI_PORT=8080
- PUID=${USER_UID}
- PGID=${USER_GID}
volumes:
- ${STORAGE_PATH}/qbittorrent/config:/config
- ${MEDIA_PATH}/torrents:/downloads
jackett:
image: linuxserver/jackett:latest
container_name: jackett
restart: unless-stopped
network_mode: "service:gluetun"
depends_on:
- gluetun
environment:
- TZ=${TZ}
- PUID=${USER_UID}
- PGID=${USER_GID}
volumes:
- ${STORAGE_PATH}/qbittorrent/config/jackett:/config
networks:
qbittorrent: