Skip to content

Instantly share code, notes, and snippets.

@NickWoodhams
Created March 8, 2016 22:40
Show Gist options
  • Select an option

  • Save NickWoodhams/e41da82c1571b10acbb2 to your computer and use it in GitHub Desktop.

Select an option

Save NickWoodhams/e41da82c1571b10acbb2 to your computer and use it in GitHub Desktop.
Running Deluge behind OpenVPN in Docker Container
# Run on host machine to access ports within docker. OpenVPN causes issues with the port forwarding.
server {
listen 8119;
location / {
#Docker Container IP Address
proxy_pass http://172.17.0.2:8112;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
#sudo docker run --name openvpn-deluge --privileged --restart=always -v /home/nick/Dev/vpn:/vpn -v /home/deluge/.config/deluge:/deluged/config -v /disk1:/disk1 -i -t openvpn_deluge /bin/bash
FROM ubuntu:14.04
MAINTAINER Nick Woodhams
RUN apt-get -y update
RUN apt-get install -y openvpn
RUN apt-get install -y deluged deluge-web deluge-console
COPY start.sh start.sh
CMD ["/start.sh"]
EXPOSE 8112 1080 58846
#!/bin/bash
/usr/sbin/openvpn --config /vpn/client.ovpn --script-security 2 &
/usr/bin/deluge-web -c /deluged/config/ &
/usr/bin/deluged -c /deluged/config/ -l /var/log/deluged.log &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment