Skip to content

Instantly share code, notes, and snippets.

@ericswpark
Created September 8, 2022 03:16
Show Gist options
  • Save ericswpark/e6c73e312f59c3105490aec5293a40b7 to your computer and use it in GitHub Desktop.
Save ericswpark/e6c73e312f59c3105490aec5293a40b7 to your computer and use it in GitHub Desktop.
Qbittorrent with gluetun on Docker Compose
version: "3"
services:
gluetun:
image: qmcgaw/gluetun
container_name: gluetun
cap_add:
- NET_ADMIN
environment:
- VPN_SERVICE_PROVIDER=mullvad
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY=abcdefgherecomesyourprivatekey
- WIREGUARD_ADDRESSES=10.11.22.111/32
- SERVER_CITIES=Seoul
- FIREWALL_VPN_INPUT_PORTS=10010
ports:
# Make sure to edit this port when changing WebUI port!
- 8080:8080
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Seoul
# Make sure to edit the port above too when changing this!
- WEBUI_PORT=8080
network_mode: "service:gluetun"
volumes:
- /full/path/to/mount/config:/config
- /full/path/to/mount/downloads:/downloads
# Disabled because we use the gluetun container for exposing webUI
# ports:
# - 8080:8080
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment