Skip to content

Instantly share code, notes, and snippets.

@dmbeta
Created May 18, 2024 22:45
Show Gist options
  • Save dmbeta/4bf9153379b2be041e740b6a4a684b99 to your computer and use it in GitHub Desktop.
Save dmbeta/4bf9153379b2be041e740b6a4a684b99 to your computer and use it in GitHub Desktop.
version: "3"
services:
gluetun:
restart: always
image: qmcgaw/gluetun
container_name: torrent-gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
ports:
- 8888:8888/tcp # HTTP proxy
- 8388:8388/tcp # Shadowsocks
- 8388:8388/udp # Shadowsocks
- "7878:7878" # radarr
- "8989:8989" # sonarr
- 8112:8112 # qbittorrent
- 6881:6881 # qbittorrent
- 6881:6881/udp # qbittorrent
- "9696:9696" # prowlarr
- 9117:9117 # jackett
- 6767:6767 #bazarr
- 8191:8191 #flaresolverr
volumes:
- ${config}/torrent-gluetun:/gluetun
environment:
# See https://github.com/qdm12/gluetun/wiki
- VPN_SERVICE_PROVIDER=protonvpn
- VPN_TYPE=openvpn
# OpenVPN:
- OPENVPN_USER=${username}
- OPENVPN_PASSWORD=${password}
- SERVER_COUNTRIES=Canada
# Server list updater. See https://github.com/qdm12/gluetun/wiki/Updating-Servers#periodic-update
- UPDATER_PERIOD=24h
- DOT=on
- DOT_PROVIDERS=quad9,cloudflare
- BLOCK_SURVEILLANCE=on
- UNBLOCK=api.nzbplanet.net
# https://github.com/linuxserver/docker-radarr
radarr:
deploy:
resources:
limits:
cpus: '0.40'
memory: 2G
image: linuxserver/radarr:latest
container_name: torrent-radarr
network_mode: "service:gluetun"
restart: always
environment:
- PGID=${pgid}
- PUID=${puid}
- TZ=America/Fort_Wayne
volumes:
- ${config}/binhex-radarr:/config
# - ${root}/Plex/Media/Movies:/media/Plex/Media/Movies
# - ${root}/Torrent/Torrent_Files:/media/Torrent/Torrent_Files
- ${root}:/media
# https://github.com/linuxserver/docker-sonarr
sonarr:
deploy:
resources:
limits:
cpus: '0.40'
memory: 2G
image: linuxserver/sonarr:latest
container_name: torrent-sonarr
network_mode: "service:gluetun"
restart: always
environment:
- PGID=${pgid}
- PUID=${puid}
- TZ=America/Fort_Wayne
volumes:
- ${config}/sonarr:/config
# - ${root}/Plex/Media/TV:/media/Plex/Media/TV
# - ${root}/Torrent/Torrent_Files:/media/Torrent/Torrent_Files
- ${root}:/media
bazarr:
deploy:
resources:
limits:
cpus: '0.40'
memory: 2G
image: linuxserver/bazarr:latest
container_name: torrent-bazarr
network_mode: "service:gluetun"
restart: always
environment:
- PGID=${pgid}
- PUID=${puid}
- TZ=America/Fort_Wayne
volumes:
- ${config}/sonarr:/config
# - ${root}/Plex/Media/TV:/media/Plex/Media/TV
# - ${root}/Torrent/Torrent_Files:/media/Torrent/Torrent_Files
- ${root}:/media
qbittorrent:
deploy:
resources:
limits:
cpus: '0.40'
memory: 2G
image: lscr.io/linuxserver/qbittorrent:latest
container_name: torrent-qbittorrent
network_mode: "service:gluetun"
environment:
- PUID=99
- PGID=100
- UMASK=022
- TZ=America/Fort_Wayne
- WEBUI_PORT=8112
- WebUI=8112
volumes:
- ${config}/qbittorrent-linuxserver:/config
# - ${root}/Plex/Media/TV:/media/Plex/Media/TV
# - ${root}/Plex/Media/Movies:/media/Plex/Media/Movies
# - ${root}/Torrent/Torrent_Files:/media/Torrent/Torrent_Files
- ${root}/Torrent/AutoAdd:/AutoAdd
- ${root}/External:/media/External
- ${root}/Torrent/Active:/data
# not sure how necessary the below is
- ${root}:/downloads
- ${root}:/media
restart: unless-stopped
prowlarr:
deploy:
resources:
limits:
cpus: '0.40'
memory: 2G
image: linuxserver/prowlarr:develop
container_name: torrent-prowlarr
restart: always
network_mode: "service:gluetun"
environment:
- PGID=${pgid}
- PUID=${puid}
- TZ=America/Fort_wayne
volumes:
- ${config}/prowlarr:/config
- ${root}/Torrent/Torrent_Files:/media/Torrent/Torrent_Files
- ${root}:/media
flaresolverr:
deploy:
resources:
limits:
cpus: '0.40'
memory: 1G
# DockerHub mirror flaresolverr/flaresolverr:latest
image: ghcr.io/flaresolverr/flaresolverr:latest
container_name: torrent-flaresolverr
environment:
- LOG_LEVEL=${LOG_LEVEL:-info}
- LOG_HTML=${LOG_HTML:-false}
- CAPTCHA_SOLVER=${CAPTCHA_SOLVER:-none}
- TZ=America/Fort_wayne
network_mode: "service:gluetun"
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment