Are there any good docker containers that have an openvpn + qbittorrent configuration setup in such a way that the torrents won’t run if the vpn isn’t running?
2 points
I have my qbittorrent behind Gluetun and port forward the web interface port through Gluetun
version: "3"
services:
gluetun:
image: qmcgaw/gluetun
container_name: qbittorrent_vpn
cap_add:
- NET_ADMIN
environment:
- VPN_SERVICE_PROVIDER=
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY==
- WIREGUARD_ADDRESSES=
- SERVER_COUNTRIES=
- TZ=Europe/Prague
ports:
- 8080:8080
- 6881:6881
- 6881:6881/udp
restart: unless-stopped
networks:
- traefik
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
environment:
- TZ=Europe/Prague
- WEBUI_PORT=8080
volumes:
- /docker/containers/qbittorrent/config:/config
- /docker/containers/qbittorrent/downloads:/downloads
restart: unless-stopped
network_mode: "service:gluetun"
networks:
traefik:
external: true
1 point
Very nice! This is basically exactly what I’m doing except I’m doing it in ansible and using the linuxserver/wireguard container.
1 point