DEPRECATION NOTICE
Hi, I have deprecated this container in favour of a better
one I have developed:
/~https://github.com/guillaumedsde/alpine-qbittorrent-openvpn
I will not be updating the repository for this container,
but I will leave the automatic builds enabled during the
'transition'.
I suggest you switch to the new ones, it has all the same
features and more, while being smaller and more secure.
This project is forked from haugene/docker-transmission-openvpn and is currently being adapted to work with qBittorrent instead of Transmision.
This repository was forked from GitHub, as such, the main repository is on GitHub and a mirror is on gitlab.com mainly for building the documentation in a CI pipeline. The final images are available in the docker hub
What is working:
- qBittorrent WebUI
- qBittorrent binds to the VPN IP address, this, plus Haugene's firewall configuration means that no data should leak outside the VPN tunnel
What is not working:
- configuration of qBittorrent from ENV variables
- qBittorrent port forwarding
This container contains OpenVPN and qBittorrent with a configuration where qBittorrent is running only when OpenVPN has an active tunnel. It bundles configuration files for many popular VPN providers to make the setup easier.
$ docker run --cap-add=NET_ADMIN -d \
-v /your/storage/path/:/data \
-v /path/to/config/directory:/config \
-v /etc/localtime:/etc/localtime:ro \
-e CREATE_TUN_DEVICE=true \
-e OPENVPN_PROVIDER=PIA \
-e OPENVPN_CONFIG=CA\ Toronto \
-e OPENVPN_USERNAME=user \
-e OPENVPN_PASSWORD=pass \
-e WEBPROXY_ENABLED=false \
-e LOCAL_NETWORK=192.168.0.0/16 \
--log-driver json-file \
--log-opt max-size=10m \
-p 8080:8080 \
guillaumedsde/qbittorrent-openvpn
version: '3.3'
services:
qbittorrent-openvpn:
volumes:
- '/your/storage/path/:/data'
- '/path/to/config/directory:/config'
- '/etc/localtime:/etc/localtime:ro'
environment:
- CREATE_TUN_DEVICE=true
- OPENVPN_PROVIDER=PIA
- OPENVPN_CONFIG=CA Toronto
- OPENVPN_USERNAME=user
- OPENVPN_PASSWORD=pass
- WEBPROXY_ENABLED=false
- LOCAL_NETWORK=192.168.0.0/16
cap_add:
- NET_ADMIN
logging:
driver: json-file
options:
max-size: 10m
ports:
- '8080:8080'
image: guillaumedsde/qbittorrent-openvpn
The full documentation is available at https://guillaumedsde.gitlab.io/docker-qbittorrent-openvpn/ .