Created
March 8, 2016 22:40
-
-
Save NickWoodhams/e41da82c1571b10acbb2 to your computer and use it in GitHub Desktop.
Running Deluge behind OpenVPN in Docker Container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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