-
Notifications
You must be signed in to change notification settings - Fork 0
/
sshost.yaml
60 lines (56 loc) · 1.46 KB
/
sshost.yaml
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
version: '2.1'
services:
shadowsocks:
image: shadowsocks/shadowsocks-libev
environment:
# Environment variables can be checked using docker inspect shadowsocks container
# - PASSWORD=Abarfoo!
# - METHOD=aes-256-cfb
# - DNS_ADDRS=10.0.0.6
- ARGS=-v -c /opt/config.json
- TZ=Asia/Shanghai
command: ["/bin/sh", "-c", "exec ss-server $${ARGS}"]
ports:
- "7005:8388"
networks:
vnss:
ipv4_address: 10.0.0.5
volumes:
- ${PWD}/ss:/opt
unbound:
image: mvance/unbound
# Mapping ports are not needed since unbound doesn't need to answer external queries. It
# only answer queries from shadowsocks
# ports:
# - "7913:53"
# - "53:53/udp"
environment:
# - ARGS=-v -c /opt/config.json
- TZ=Asia/Shanghai
networks:
vnss:
ipv4_address: 10.0.0.6
volumes:
- ${PWD}/unbound:/opt/unbound/etc/unbound/
healthcheck:
disable: true
kcptun:
image: xtaci/kcptun
command: ["/bin/sh", "-c", "exec server $${ARGS}"]
ports:
- "4500:29900/udp"
environment:
- ARGS=-c /opt/config.json
- TZ=Asia/Shanghai
networks:
vnss:
ipv4_address: 10.0.0.7
volumes:
- ${PWD}/kcptun:/opt
networks:
vnss:
driver: bridge
ipam:
config:
- subnet: 10.0.0.0/24
gateway: 10.0.0.1