VPN

---
services:

### VPN SERVICE ###
  gluetun:
    image: qmcgaw/gluetun:v3
    container_name: gluetun
    cap_add:
      - NET_ADMIN
    ports:
      - 8888:8888/tcp
      - 8388:8388
      - 8112:8112 #deluge
      - 6881:6881 #deluge
      - 8090:8090 #mylar3
      - 8081:8080 #sabnzb
      - 8686:8686 #lidarr
      - 9696:9696 #prowlarr
      - 7878:7878 #radarr
      - 8989:8989 #sonarr
    volumes:
      - /var/lib/gluetun:/gluetun
    environment: 
      - VPN_SERVICE_PROVIDER=nordvpn
      - VPN_TYPE=openvpn
      - OPENVPN_USER= #User Name provided by VPN Provider
      - OPENVPN_PASSWORD= #Password provided by VPN Provider
      - SERVER_COUNTRIES=United States
      - TZ=America/New_York
      - UPDATER_PERIOD=24h
      - UNBLOCK=usenetserver.com
    devices:
      - /dev/net/tun:/dev/net/tun
    restart: always

### DOWNLOAD CLIENTS ###

  deluge:
    image: lscr.io/linuxserver/deluge:latest
    container_name: deluge
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
      - DELUGE_LOGLEVEL=error
    volumes:
      - /mnt/torrents:/torrents
      - /var/lib/deluge:/config
    network_mode: "container:gluetun"
    depends_on:
      gluetun:
        condition: service_started
    restart: always

  sabnzbd:
    image: lscr.io/linuxserver/sabnzbd:latest
    container_name: sabnzbd
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
    volumes:
      - /mnt/torrents:/torrents
      - /var/lib/sabnzbd:/config
    network_mode: "container:gluetun"
    depends_on:
      gluetun:
        condition: service_started
    restart: always

### ARR STACK ###

  lidarr:
    image: lscr.io/linuxserver/lidarr:latest
    container_name: lidarr
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
    volumes:
      - /mnt/media/music:/music
      - /mnt/torrents:/torrents
      - /var/lib/lidarr:/config
    network_mode: "container:gluetun"
    depends_on:
      gluetun:
        condition: service_started    
    restart: always

  mylar3:
    image: lscr.io/linuxserver/mylar3:latest
    container_name: mylar
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
    volumes:
      - /mnt/media/comics:/comics
      - /mnt/torrents:/torrents
      - /var/lib/mylar3:/config
    network_mode: "container:gluetun"
    depends_on:
      gluetun:
        condition: service_started
    restart: always

  prowlarr:
    image: lscr.io/linuxserver/prowlarr:latest
    container_name: prowlarr
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
    volumes:
      - /var/lib/prowlarr:/config
    network_mode: "container:gluetun"
    depends_on:
      gluetun:
        condition: service_started   
    restart: always

  radarr:
    image: lscr.io/linuxserver/radarr:latest
    container_name: radarr
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
    volumes:
      - /mnt/media/christmas:/christmas
      - /mnt/media/movies:/movies
      - /mnt/torrents:/torrents
      - /var/lib/radarr:/config
    network_mode: "container:gluetun"
    depends_on:
      gluetun:
        condition: service_started   
    restart: always

  sonarr:
    image: lscr.io/linuxserver/sonarr:latest
    container_name: sonarr
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
    volumes:
      - /mnt/torrents:/torrents
      - /mnt/media/tvshows:/tvshows
      - /var/lib/sonarr:/config
    network_mode: "container:gluetun"
    depends_on:
      gluetun:
        condition: service_started   
    restart: always