Skip to content

Instantly share code, notes, and snippets.

@Amoenus
Created January 16, 2025 19:04
Show Gist options
  • Save Amoenus/e2de08b34edcebce985adcb3df64f257 to your computer and use it in GitHub Desktop.
Save Amoenus/e2de08b34edcebce985adcb3df64f257 to your computer and use it in GitHub Desktop.
qbittorrent + gluetun
version: "3.9"
services:
gluetun:
container_name: gluetun
image: qmcgaw/gluetun:latest
cap_add:
- NET_ADMIN
environment:
- VPN_SERVICE_PROVIDER=protonvpn
- OPENVPN_USER=useYourOwn
- OPENVPN_PASSWORD=useYourOwn
- PROTOCOL=tcp
- OPENVPN_MSSFIX=1460
- OPENVPN_VERSION=2.6
ports:
- 8080:8080
- 8888:6881
- 8888:6881/udp
restart: always
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
depends_on:
gluetun:
condition: service_healthy
environment:
- PUID=1026
- PGID=100
- TZ=useYourOwn
- WEBUI_PORT=8080
healthcheck:
test: ["CMD-SHELL", "curl -f https://useYourOwn.com/ || exit 1"]
interval: 60s
timeout: 20s
retries: 5
volumes:
- /useYourOwn/docker/qbittorrent/config:/config
- /useYourOwn:/downloads
network_mode: service:gluetun
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment