1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-30 09:16:58 +02:00
dockerfiles/openvpn/docker-compose.yml
2016-05-01 09:06:20 +08:00

49 lines
1.0 KiB
YAML

data:
image: busybox
volumes:
- /etc/openvpn
server:
image: vimagick/openvpn
expose:
- "1194/tcp"
volumes_from:
- data
cap_add:
- NET_ADMIN
restart: always
################################### SERVER ###################################
fteproxy:
image: vimagick/fteproxy
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"
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
#
##############################################################################