Skip to content

Instantly share code, notes, and snippets.

@mihalt
Forked from Romancha/synology-media.yml
Created February 25, 2024 19:20
Show Gist options
  • Save mihalt/66f4719bc72c45bb8dae10f8cd8fb2e3 to your computer and use it in GitHub Desktop.
Save mihalt/66f4719bc72c45bb8dae10f8cd8fb2e3 to your computer and use it in GitHub Desktop.
Synology Sonarr + Radarr + Jackett + qBittorrent under OpenVPN
---
version: "2"
services:
qbittorrent:
image: linuxserver/qbittorrent:4.5.0
container_name: qbittorrent
mem_limit: 3000m
mem_reservation: 128M
depends_on:
- openvpn
environment:
- PUID=1030
- PGID=100
- TZ=Europe/London
- WEBUI_PORT=6004
volumes:
- /volume1/docker/containers/qbittorrent:/config
- /volume1/torMedia:/media
restart: unless-stopped
network_mode: "service:openvpn"
jackett:
image: linuxserver/jackett:0.20.2402
container_name: jackett
depends_on:
- openvpn
environment:
- PUID=1030
- PGID=100
- TZ=Europe/London
volumes:
- /volume1/docker/containers/jackett:/config
- /volume1/torMedia:/media
restart: unless-stopped
network_mode: "service:openvpn"
radarr:
image: linuxserver/radarr:4.2.4
container_name: radarr
depends_on:
- openvpn
environment:
- PUID=1030
- PGID=100
- TZ=Europe/London
volumes:
- /volume1/docker/containers/radarr:/config
- /volume1/torMedia:/media
restart: unless-stopped
network_mode: "service:openvpn"
sonarr:
image: linuxserver/sonarr:3.0.9
container_name: sonarr
depends_on:
- openvpn
environment:
- PUID=1030
- PGID=100
- TZ=Europe/London
volumes:
- /volume1/docker/containers/sonarr:/config
- /volume1/torMedia:/media
restart: unless-stopped
network_mode: "service:openvpn"
openvpn:
container_name: openvpn
image: dperson/openvpn-client
environment:
- PUID=1030
- PGID=100
- TZ=Europe/London
cap_add:
- net_admin
dns:
- 8.8.4.4
- 8.8.8.8
ports:
- 6002:9117
- 6003:7878
- 6004:6004
- 6005:8989
- 6882:6882
- 6882:6882/udp
extra_hosts:
- host.docker.internal:host-gateway
read_only: true
tmpfs:
- /tmp
restart: unless-stopped
security_opt:
- label:disable
stdin_open: true
tty: true
volumes:
- /dev/net:/dev/net:z
- /volume1/docker/containers/openvpn:/vpn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment