Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fluential/9709a9c7d13796ba98c72f834e838d44 to your computer and use it in GitHub Desktop.
Save fluential/9709a9c7d13796ba98c72f834e838d44 to your computer and use it in GitHub Desktop.
Poor man's media centre
# Bazarr downloads subtitles
version: "3.4"
services:
bazarr:
image: linuxserver/bazarr:1.0.5-development
container_name: bazarr
restart: unless-stopped
environment:
- TZ=Europe/London
- PUID=1026
- PGID=100
volumes:
- /volume1/data:/data
- /volume1/docker/bazarr/config:/config # Bazarr data
ports:
- 6767:6767/tcp # Allows HTTP access to the internal webserver.
networks:
torrent:
networks:
torrent:
external: true
# Gluetun is a Mullvad VPN client with built-in kill switch
version: "3.4"
services:
vpn:
container_name: vpn
image: qmcgaw/gluetun
restart: always
healthcheck:
test: wget -O - https://am.i.mullvad.net/connected | grep -q "You are connected"
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
labels:
- autoheal=true
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
environment:
- TZ=Europe/London
# Expose torrent ports here
ports:
- 8000:80
- 8080:8080 # qBittorrent
- 8112:8112
- 9117:9117 # Jackett
environment:
- VPN_SERVICE_PROVIDER=mullvad
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY=XXX
- WIREGUARD_ADDRESSES=XXX
- FIREWALL_VPN_INPUT_PORTS=XXX
- SERVER_CITIES=XXX
networks:
torrent:
aliases:
- torrent-client
networks:
torrent:
external: true
# Jackett is a frontend to torrent search sites
version: "3.4"
services:
jackett:
container_name: jackett
image: linuxserver/jackett:latest
restart: unless-stopped
environment:
- PUID=1026
- PGID=100
- TZ=Europe/London
volumes:
- /volume1/data/Torrents/Queue:/downloads
- /volume1/docker/jackett/config:/config
network_mode: "container:vpn"
healthcheck:
test: curl https://am.i.mullvad.net/connected | grep -q "You are connected"
labels:
- autoheal=true
# qBittorrent is a torrent client
version: "3.4"
services:
qbittorrent:
container_name: qbittorrent
image: linuxserver/qbittorrent:latest
restart: always
environment:
- PGID=100
- PUID=1026
- TZ=Europe/London
- WEBUI_PORT=8080
volumes:
- /volume1/docker/qbittorrent/config:/config
- /volume1/data:/data
network_mode: "container:vpn"
healthcheck:
test: curl https://am.i.mullvad.net/connected | grep -q "You are connected"
labels:
- autoheal=true
# Radarr downloads movies
version: "3.4"
services:
radarr:
container_name: radarr
image: linuxserver/radarr:latest
restart: unless-stopped
environment:
- PUID=1026
- PGID=100
- TZ=Europe/London
ports:
- 7878:7878
volumes:
- /etc/localtime:/etc/localtime:ro
- /volume1/docker/radarr/config:/config
- /volume1/data:/data
networks:
torrent:
networks:
torrent:
external: true
# Sonarr downloads TV shows
version: "3.4"
services:
sonarr:
container_name: sonarr
image: linuxserver/sonarr:latest
restart: unless-stopped
environment:
- PUID=1026
- PGID=100
- TZ=Europe/London
ports:
- 8989:8989
volumes:
- /etc/localtime:/etc/localtime:ro
- /volume1/docker/sonarr/config:/config
- /volume1/data:/data
networks:
torrent:
networks:
torrent:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment