diff options
author | Roger Gonzalez <roger@rogs.me> | 2023-01-15 19:23:33 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2023-01-15 19:23:33 -0300 |
commit | 1a2cc2cdc3407fcfdebbfea9ea1d4b7deb2677e4 (patch) | |
tree | 37599cde392763d362ef35aab4e0fd67baf6cd78 /docker-compose.example.yaml | |
parent | 832946743a438673f30757a4931071b6da9303e4 (diff) |
Added mullvad vpn
Diffstat (limited to 'docker-compose.example.yaml')
-rw-r--r-- | docker-compose.example.yaml | 26 |
1 files 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: - <media_folder>/downloads:/downloads - <install_location>/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: + - <install_location>/config/gluetun:/config + environment: + - VPN_SERVICE_PROVIDER=mullvad + - VPN_TYPE=openvpn + - OPENVPN_USER=<mullvad_user> |