Skip to content

Instantly share code, notes, and snippets.

@KokoseiJ
Created June 24, 2025 08:08
Show Gist options
  • Select an option

  • Save KokoseiJ/2228ad135e7bec2e04e4199bbe4f60db to your computer and use it in GitHub Desktop.

Select an option

Save KokoseiJ/2228ad135e7bec2e04e4199bbe4f60db to your computer and use it in GitHub Desktop.
Docker Deluge setup with PIA
name: deluge-pia
services:
pia:
image: thrnz/docker-wireguard-pia
cap_add:
- NET_ADMIN
- SYS_MODULE
env_file: .env
environment:
- LOC=ca_vancouver
- LOCAL_NETWORK=10.5.14.0/24,10.14.0.0/16
- PORT_FORWARDING=1
- PORT_FATAL=1
- PORT_SCRIPT=/pia-shared/port.sh
- EXIT_ON_FATAL=1
ports:
- "8112:8112"
volumes:
- ./pia:/pia
- ./pia-shared:/pia-shared
- ./deluge/config:/deluge
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
# May as well disable ipv6. Should be blocked anyway.
- net.ipv6.conf.default.disable_ipv6=1
- net.ipv6.conf.all.disable_ipv6=1
- net.ipv6.conf.lo.disable_ipv6=1
restart: unless-stopped
deluge:
image: lscr.io/linuxserver/deluge:latest
environment:
- PUID=1000
- PGID=1000
- TZ=America/Vancouver
- DELUGE_LOGLEVEL=error
volumes:
- ./deluge/config:/config
- ./deluge/downloads:/downloads
- ./deluge/incoming:/incoming
depends_on:
pia:
condition: service_healthy
network_mode: "service:pia"
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment