-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
81 lines (80 loc) · 2.23 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '2'
services:
glorytun-udp:
image: ysurac/docker-glorytun
container_name: glorytun-udp
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
ports:
- 65001:5000/udp
environment:
- GLORYTUN_IP_LOCAL=10.255.254.1
- GLORYTUN_IP_PEER=10.255.254.2
- GLORYTUN_KEY=${GLORYTUN_UDP_KEY}
restart: always
networks:
- code-network
glorytun-tcp:
image: ysurac/docker-glorytun-tcp
container_name: glorytun-tcp
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
ports:
- 65001:5000/tcp
environment:
- GLORYTUN_IP_LOCAL=10.255.255.1
- GLORYTUN_IP_PEER=10.255.255.2
- GLORYTUN_KEY=${GLORYTUN_TCP_KEY}
- GLORYTUN_OPTIONS=${GLORYTUN_TCP_OPTIONS}
restart: always
networks:
- code-network
shadowsocks-libev:
image: ysurac/docker-shadowsocks-libev
container_name: shadowsocks
ports:
- 65101
volumes:
- ./shadowsocks/config.json:/etc/shadowsocks-libev/config.json
restart: always
networks:
- code-network
# mlvpn:
# image: ysurac/docker-mlvpn
# container_name: mlvpn
# cap_add:
# - NET_ADMIN
# devices:
# - /dev/net/tun:/dev/net/tun
# command: "/usr/local/sbin/mlvpn --config /etc/mlvpn/mlvpn0.conf --user mlvpn -v --debug"
# ports:
# - 65201-65208
# restart: always
# volumes:
# - ./mlvpn/mlvpn0.conf:/etc/mlvpn/mlvpn0.conf
# networks:
# - code-network
openvpn:
image: ysurac/docker-openvpn
container_name: openvpn
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
ports:
- 65301:65301
environment:
- OPENVPN_IP_LOCAL=10.255.253.1
- OPENVPN_IP_PEER=10.255.253.2
restart: always
volumes:
- ./openvpn:/etc/openvpn
networks:
- code-network
networks:
code-network:
driver: bridge