1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02:00

update docker-compose.yml

This commit is contained in:
kev 2016-07-11 17:30:09 +08:00
parent 517c560576
commit 4f7c39b30c
4 changed files with 41 additions and 45 deletions

View File

@ -182,6 +182,7 @@ A collection of delicious docker recipes.
- [x] openconnect-arm
- [x] openvpn-arm
- [x] pptp
- [x] pptp-arm
- [x] pptpd
- [x] shadowvpn
- [x] strongswan :+1:

View File

@ -1,23 +1,27 @@
server:
master:
image: vimagick/fteproxy
ports:
- "80"
- "4911:4911"
external_links:
- openvpn_server_1:server
environment:
- "MODE=server"
- "SERVER_IP=0.0.0.0"
- "SERVER_PORT=80"
- "PROXY_IP=www.google.com"
- "PROXY_PORT=80"
- MODE=server
- SERVER_IP=0.0.0.0
- SERVER_PORT=4911
- PROXY_IP=server
- PROXY_PORT=1194
- KEY=66754b8113ea7a218b7613f73f7e13b1e91790216f659b5f78b903b34c654741
restart: always
client:
bridge:
image: vimagick/fteproxy
ports:
- "9009:80"
links:
- server
- "1194:1194"
environment:
- "MODE=client"
- "SERVER_IP=server"
- "SERVER_PORT=80"
- "CLIENT_IP=0.0.0.0"
- "CLIENT_PORT=80"
- MODE=client
- SERVER_IP=vpn.easypi.info
- SERVER_PORT=4911
- CLIENT_IP=0.0.0.0
- CLIENT_PORT=1194
- KEY=66754b8113ea7a218b7613f73f7e13b1e91790216f659b5f78b903b34c654741
restart: always

View File

@ -3,7 +3,19 @@ openvpn:
command: --config pi.ovpn
volumes:
- ./data:/etc/openvpn
cap_add:
- NET_ADMIN
net: host
privileged: yes
restart: always
stunnel:
image: easypi/stunnel-arm
ports:
- "1194:1194"
environment:
- CLIENT=yes
- SERVICE=openvpn
- ACCEPT=0.0.0.0:1194
- CONNECT=server:4911
extra_hosts:
- server:1.2.3.4
restart: always

View File

@ -13,36 +13,15 @@ server:
- NET_ADMIN
restart: always
################################### SERVER ###################################
fteproxy:
image: vimagick/fteproxy
stunnel:
image: vimagick/stunnel
ports:
- "4911:4911"
links:
- server
environment:
- MODE=server
- SERVER_IP=0.0.0.0
- SERVER_PORT=4911
- PROXY_IP=server
- PROXY_PORT=1194
- KEY=66754b8113ea7a218b7613f73f7e13b1e91790216f659b5f78b903b34c654741
- CLIENT=no
- SERVICE=openvpn
- ACCEPT=0.0.0.0:4911
- CONNECT=server:1194
restart: always
################################### CLIENT ###################################
#
#fteproxy:
# image: vimagick/fteproxy
# ports:
# - "1194:1194"
# environment:
# - MODE=client
# - SERVER_IP=vpn.easypi.info
# - SERVER_PORT=4911
# - CLIENT_IP=0.0.0.0
# - CLIENT_PORT=1194
# - KEY=66754b8113ea7a218b7613f73f7e13b1e91790216f659b5f78b903b34c654741
# restart: always
#
##############################################################################