Hi everyone, this moring i though of a very good feature to add: gluetun + qbittorrent through a docker compose, just need to implement an interface where you select your vpn provider and fill the needed infos, you can add port forarding through the yaml install script ( for example for proton vpn) and i think i could be a very good option for the users who doesn't know how to setup a thing like this. i add below an example of a yaml docker compose file (mine):
services:
gluetun:
cap_add:
- NET_ADMIN
container_name: gluetun
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=custom
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY=XXXXXXXXXXXXXXXXXXXXX
- WIREGUARD_PUBLIC_KEY=XXXXXXXXXXXXXXXXXXXX
- WIREGUARD_ADDRESSES=10.2.0.2/32
- VPN_ENDPOINT_IP=185.246.211.193
- VPN_ENDPOINT_PORT=51820
- VPN_DNS_ADDRESS=10.2.0.1
- VPN_PORT_FORWARDING=on
- VPN_PORT_FORWARDING_PROVIDER=protonvpn
- WIREGUARD_MTU=1420
- FIREWALL_OUTBOUND_SUBNETS=192.168.1.0/24
image: qmcgaw/gluetun:latest
ports:
- '8080:8080'
restart: unless-stopped
volumes:
- /mnt/HDDs/Applications/gluetun:/gluetun
- /mnt/HDDs/Applications/gluetun:/tmp/gluetun
gluetun-qbittorrent-port-manager:
environment:
HTTP_S: http
PORT_FORWARDED: /tmp/gluetun/forwarded_port
QBITTORRENT_PASS: password
QBITTORRENT_PORT: 8080
QBITTORRENT_SERVER: localhost
QBITTORRENT_USER: admin
image: snoringdragon/gluetun-qbittorrent-port-manager:latest
network_mode: service:gluetun
restart: unless-stopped
volumes:
- /mnt/HDDs/Applications/gluetun:/tmp/gluetun
qbittorrent:
container_name: qbittorrent
depends_on:
- gluetun
environment:
- PUID=568
- PGID=568
- TZ=Europe/Paris
- WEBUI_PORTS=8080/tcp
image: ghcr.io/hotio/qbittorrent:latest
network_mode: service:gluetun
restart: unless-stopped
volumes:
- /mnt/HDDs/Applications/qbittorrent_vpn/config:/config
- /mnt/HDDs/Applications/qbittorrent_vpn/data:/data
- /mnt/HDDs/Downloads/qbittorrent:/downloads
version: '3.9'