Handles running a Deluge instance along side the OpenVPN service. If the OpenVPN function is enabled, it is required to configure the VPN itself. To simplify the process, config.ovpn files are used
The container will read the address and port details defined in the config.ovpn to generate the required ufw firewall permissions.
To run the docker image, below is the typical configuration...
docker run \
-v $PWD/config:/config \
-v $PWD/downloads:/downloads \
-p 8112:8112 \
--cap-add=NET_ADMIN \
--device /dev/net/tun:/dev/net/tun \
--name deluge-openvpn \
kabe0/deluge-openvpn
The --device is required to ensure that the OpenVPN can set the necessary configuration details. The default option should always be /dev/net/tun.
--cap-add=NET_ADMIN is also needed to ensure that the OpenVPN service has enough permissions to change the network configuration for the docker container.
Docker Path | Description |
---|---|
/config | The main config directory for deluge and the docker container home directory. |
/downloads | The folder where files are downloaded to. |
Name | Default | Description |
---|---|---|
DNS | 8.8.8.8,8.8.4.4 | A comma separated string list that contains all the DNS ports that should be used by the container. |
WEB_PORT | 8112 | The port used by the deluge-web for displaying the html content. |
DEL_PORT | 58846 | The port the Daemon runs on. |
DEL_UID | 1000 | The ID used for the main deluge user account. Changing this value could break the config folder. |
DEL_GID | 1000 | The ID used for the main deluge group account. Changing this value could break the config folder. |
VPN_ENABLE | True | Can be used to disable the VPN component (which is useful when debugging) |
VPN_CONFIG | /config/config.ovpn | The path for the config.ovpn that should be loaded. |
VPN_AUTH | /config/auth.conf | The path for the auth.conf which should store the username and password. If the file is not found, the application will still try to connect to the VPN server. |
USE_UFW | False | Toggle UFW or iptables. Note that UFW may not work on NAS based Unix systems. |
HOME | /config | The path to the home directory. |