1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 22:08:39 +00:00

update openvpn docker-compose.yml

This commit is contained in:
kev 2016-09-03 13:54:20 +08:00
parent 61cfbbb50d
commit 0acf011f87
4 changed files with 48 additions and 1 deletions

@ -3,7 +3,7 @@ OpenVPN
[OpenVPN][1] is blocked in China. You need to connect vpn via secure tunnel.
Instead of using [fteproxy][2] as bridge, you can also use [stunnel][3].
Instead of using [fteproxy][2] as bridge, you can also use [stunnel][3] or [kcptun][4].
- server: vpn.easypi.info
- bridge: bridge.easypi.info
@ -93,3 +93,4 @@ $ systemctl enable openvpn@client
[1]: https://openvpn.net/index.php/open-source.html
[2]: https://github.com/vimagick/dockerfiles/tree/master/fteproxy
[3]: https://github.com/vimagick/dockerfiles/tree/master/stunnel
[3]: https://github.com/vimagick/dockerfiles/tree/master/kcptun

@ -0,0 +1,24 @@
openvpn:
image: vimagick/openvpn
ports:
- "1194:1194"
volumes:
- ./data:/etc/openvpn
cap_add:
- NET_ADMIN
restart: always
fteproxy:
image: vimagick/fteproxy
ports:
- "4911:4911"
links:
- openvpn
environment:
- MODE=server
- SERVER_IP=0.0.0.0
- SERVER_PORT=4911
- PROXY_IP=openvpn
- PROXY_PORT=1194
- KEY=CB2FBA2BC70490526E749E01BB050F6B555964290DFF58CF24785B4A093F7B18
restart: always

@ -0,0 +1,22 @@
openvpn:
image: vimagick/openvpn
ports:
- "1194:1194"
volumes:
- ./data:/etc/openvpn
cap_add:
- NET_ADMIN
restart: always
kcptun:
image: vimagick/kcptun
command:
--listen :4911
--target openvpn:1194
ports:
- "4911:4911/udp"
links:
- openvpn
environment:
- KCPTUN_KEY=******
restart: always