A Really secure Deluge Container for some really Private Linux ISO Downloads that are automatically added to the owncloud.
if you have IPv6 support enabled in your Docker deamon than you have to remove the following line from the Deluge dockerfile
RUN sed -i 's/IPV6=yes/IPV6=no/g' /etc/default/ufw
If you have not already installed docker you have to install it.
curl -fsSL https://get.docker.com | sh
curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
You have to clone the repository
git clone https://github.com/techtasie/Docker-Deluge-OpenVPN-Owncloud
cd Docker-Deluge-OpenVPN-Owncloud
Add your SSL Certs as a bundle:
mkdir certs
cd certs
cp /your/crt/bundle.crt ./cert.crt
cp /your/private/key.key ./cert.key
cd ..
IMPORTANT: Set your Domain name in the nginx config:
Change example.com
in owncloud_proxy/nginx.conf
to your public Domain.
Copy the config to the openvpn folder:
mkdir openvpn
cd openvpn
cp /your/OpenVPN/config ./openvpn.ovpn
cp /your/other/crt/files .
Change in the openvpn.ovpn the line:
auth-user-pass
to
auth-user-pass pass.txt
and create the pass.txt
file and put your credentials in it:
your-user.name
your-password
Just run in the main directory:
docker-compose up -d
to stop it again move to the folder and run:
docker-compose down
Access the Deluge container by surfing to your-local-ip-address:8112
The default password is: deluge
Set the completed downloads folder to /completed
because all files in this folder are automatically added to the Folder Deluge from root user on the owncloud.
Access the owncloud by surfing to your-domain.com
Setup as root
user the user root
now the folder Deluge will be in the files of root and you can share it with other users