1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-24 05:17:06 +02:00
dockerfiles/stunnel/docker-compose.yml

35 lines
600 B
YAML
Raw Normal View History

2024-05-08 11:46:59 +08:00
version: "3.8"
2016-07-11 13:57:48 +08:00
2024-05-08 11:46:59 +08:00
services:
# In Japan (IP: 1.2.3.4)
master:
image: vimagick/stunnel
ports:
- "4911:4911"
environment:
- CLIENT=no
- SERVICE=openvpn
- ACCEPT=0.0.0.0:4911
- CONNECT=server:1194
restart: unless-stopped
# In China
bridge:
image: vimagick/stunnel
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: unless-stopped
networks:
default:
name: openvpn_default
external: true