This project is derived from ebrianne's deluge fork of haugenes's docker-transmission-openvpn container. All VPN configurations are now moved to a separate repository.
This container contains OpenVPN and Deluge with a configuration where Deluge 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 \
--sysctl=net.ipv6.conf.all.disable_ipv6=1 \
-v /your/storage/path/to/downloads/:/download \
-v /your/storage/path/to/config/:/config \
-e OPENVPN_PROVIDER=PIA \
-e OPENVPN_CONFIG=France \
-e OPENVPN_USERNAME=user \
-e OPENVPN_PASSWORD=pass \
-e LOCAL_NETWORK=192.168.0.0/16 \
-p 8112:8112 \
jsylvis/docker-deluge-openvpn
version: '3.2'
services:
deluge-openvpn:
volumes:
- '/your/storage/path/to/downloads/:/download'
- '/your/storage/path/to/config/:/config'
environment:
- OPENVPN_PROVIDER=PIA
- OPENVPN_CONFIG=France
- OPENVPN_USERNAME=user
- OPENVPN_PASSWORD=pass
- LOCAL_NETWORK=192.168.0.0/16
cap_add:
- NET_ADMIN
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
ports:
- '8112:8112'
image: jsylvis/docker-deluge-openvpn
The documentation for this image is hosted on this GitHub page.
By default, this container will use whatever DNS server is provided by the OpenVPN remote. When experiencing failures to resolve a host through your VPN provider's DNS, you may wish to override this DNS server.
The OVERRIDE_DNS
environment variable allows you to specify the IPs of your choice of DNS servers. This container will use this information to populate resolv.conf
and to reject the DNS provided by the OpenVPN remote.
This container provides support for the following optional lifecycle scripts:
- Before Deluge start-up:
/config/deluge-pre-start.sh
- After Delgue start-up:
/config/deluge-post-start.sh
- After OpenVPN is fully connected and initialized:
/config/openvpn-post-init.sh
This is suitable for issuing commands after the tunnel is fully up and operational e.g. when authenticating with trackers (such as MyAnonamouse) which have additional authentication requirements for VPN users.
The Web UI is available at http://[host-ip]:[port]
via browser on the same local network. The default password is deluge
.
If you want to access Deluge from a Local client other than the WEB UI, like Trieme for Android App:
Edit the file /your/storage/path/to/config/auth
to add a new line username:password:10
, save changes and restart container.
Credential | Default Value |
---|---|
Host |
HOST IP |
Port |
58846 |
Username |
username |
Password |
password |