From 1a2cc2cdc3407fcfdebbfea9ea1d4b7deb2677e4 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sun, 15 Jan 2023 19:23:33 -0300 Subject: Added mullvad vpn --- docker-compose.example.yaml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/docker-compose.example.yaml b/docker-compose.example.yaml index 512ed7c..4ac4f47 100644 --- a/docker-compose.example.yaml +++ b/docker-compose.example.yaml @@ -27,11 +27,9 @@ services: volumes: - /downloads:/downloads - /config/qbittorrent:/config - ports: - - 6881:6881 - - 6881:6881/udp - - 8080:8080 restart: unless-stopped + network_mode: "service:gluetun" + depends_on: gluetun # Sonarr is used to query, add downloads to the download queue and index TV shows sonarr: @@ -93,3 +91,23 @@ services: ports: - 9117:9117 restart: unless-stopped + + # Gluetun is our VPN, so you can download torrents safely + gluetun: + image: qmcgaw/gluetun + container_name: gluetun + cap_add: + - NET_ADMIN + devices: + - /dev/net/tun:/dev/net/tun + ports: + - 8888:8888/tcp # HTTP proxy + - 8388:8388/tcp # Shadowsocks + - 8388:8388/udp # Shadowsocks + - 8080:8080/tcp + volumes: + - /config/gluetun:/config + environment: + - VPN_SERVICE_PROVIDER=mullvad + - VPN_TYPE=openvpn + - OPENVPN_USER= -- cgit v1.2.3