&& apt-get update \ | && apt-get update \ | ||||
&& apt-get install -y transmission-cli transmission-common transmission-daemon \ | && apt-get install -y transmission-cli transmission-common transmission-daemon \ | ||||
&& apt-get install -y openvpn curl rar unrar zip unzip wget \ | && apt-get install -y openvpn curl rar unrar zip unzip wget \ | ||||
&& apt-get install -y tinyproxy telnet\ | |||||
&& apt-get install -y tinyproxy telnet \ | |||||
&& curl -sLO https://github.com/Yelp/dumb-init/releases/download/v1.0.1/dumb-init_1.0.1_amd64.deb \ | && curl -sLO https://github.com/Yelp/dumb-init/releases/download/v1.0.1/dumb-init_1.0.1_amd64.deb \ | ||||
&& dpkg -i dumb-init_*.deb \ | && dpkg -i dumb-init_*.deb \ | ||||
&& rm -rf dumb-init_*.deb \ | && rm -rf dumb-init_*.deb \ |
- OPENVPN_PASSWORD=password | - OPENVPN_PASSWORD=password | ||||
- OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60 | - OPENVPN_OPTS=--inactive 3600 --ping 10 --ping-exit 60 | ||||
- LOCAL_NETWORK=192.168.0.0/24 | - LOCAL_NETWORK=192.168.0.0/24 | ||||
- WEBPROXY_ENABLED=true | |||||
- WEBPROXY_PORT=8888 | |||||
proxy: | proxy: | ||||
build: | build: | ||||
context: ./proxy | context: ./proxy |
- OPENVPN_PASSWORD=password | - OPENVPN_PASSWORD=password | ||||
- OPENVPN_OPTS="--inactive 3600 --ping 10 --ping-exit 60" | - OPENVPN_OPTS="--inactive 3600 --ping 10 --ping-exit 60" | ||||
- LOCAL_NETWORK=192.168.0.0/24 | - LOCAL_NETWORK=192.168.0.0/24 | ||||
- WEBPROXY_ENABLED=true | |||||
- WEBPROXY_PORT=8888 | |||||
proxy: | proxy: | ||||
image: haugene/transmission-openvpn-proxy | image: haugene/transmission-openvpn-proxy | ||||
links: | links: |
#!/bin/sh | #!/bin/sh | ||||
/etc/transmission/stop.sh | /etc/transmission/stop.sh | ||||
/opt/tinyproxy/stop.sh |
#!/bin/sh | #!/bin/sh | ||||
/etc/transmission/start.sh | /etc/transmission/start.sh | ||||
/etc/tinyproxy/start.sh | |||||
/opt/tinyproxy/start.sh |
#!/bin/bash | |||||
if [ "${WEBPROXY_ENABLED}" = "true" ]; then | |||||
/etc/init.d/tinyproxy stop | |||||
fi |