From a8d0b4079708f54b0d148370e1d597d3a3326865 Mon Sep 17 00:00:00 2001 From: meftimes Date: Sun, 5 Nov 2023 09:53:29 -0500 Subject: [PATCH] add gluetun-qbittorrent --- gluetun-qbittorrent/.env | 2 + gluetun-qbittorrent/gluetun-qbittorrent.yml | 47 +++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 gluetun-qbittorrent/.env create mode 100644 gluetun-qbittorrent/gluetun-qbittorrent.yml diff --git a/gluetun-qbittorrent/.env b/gluetun-qbittorrent/.env new file mode 100644 index 0000000..6aa57e2 --- /dev/null +++ b/gluetun-qbittorrent/.env @@ -0,0 +1,2 @@ +WIREGUARD_PRIVATE_KEY=private_key_goes_here_see_https://github.com/qdm12/gluetun-wiki/blob/main/setup/providers/mullvad.md +WIREGUARD_ADDRESSES=addresses_go_here diff --git a/gluetun-qbittorrent/gluetun-qbittorrent.yml b/gluetun-qbittorrent/gluetun-qbittorrent.yml new file mode 100644 index 0000000..837945a --- /dev/null +++ b/gluetun-qbittorrent/gluetun-qbittorrent.yml @@ -0,0 +1,47 @@ +version: "2.1" + +services: + gluetun: + image: qmcgaw/gluetun + container_name: gluetun + cap_add: + - NET_ADMIN + ports: + - 8080:8080 # qbit + - 58261:58261 # qbit + - 58261:58261/udp # qbit + environment: + - VPN_SERVICE_PROVIDER=mullvad + - VPN_TYPE=wireguard + - SERVER_CITIES=Toronto + env_file: + - .env + restart: unless-stopped + networks: + - proxy + + qbittorrent: + image: lscr.io/linuxserver/qbittorrent:latest + container_name: qbittorrent + environment: + - PUID=1001 + - PGID=1001 + - TZ=America/New_York + volumes: + - /home/meftimes/docker/gluetun-qbittorrent/config:/config + - /home/meftimes/docker/gluetun-qbittorrent/downloads:/downloads + restart: unless-stopped + network_mode: service:gluetun + depends_on: + gluetun: + condition: service_healthy + labels: + - "traefik.enable=true" + - "traefik.http.routers.qbittorrent-websecure.entrypoints=websecure" + - "traefik.http.routers.qbittorrent-websecure.rule=Host(`qbittorrent.meftimes.com`)" + - "traefik.http.routers.qbittorrent-websecure.service=qbittorrent-websecure" + - "traefik.http.services.qbittorrent-websecure.loadbalancer.server.port=8080" + +networks: + proxy: + external: true