-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (47 loc) · 1.11 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
version: "2.3"
services:
cisco:
build:
context: docker/image/cisco
networks:
main:
ipv4_address: 10.101.0.2
privileged: true
cap_add:
- NET_ADMIN
restart: "always"
security_opt:
- label:disable
socks5:
image: wernight/dante
depends_on:
- cisco
volumes:
- $PWD/storage/docker/socks5/sockd.conf:/etc/sockd.conf
healthcheck:
test: [ "CMD-SHELL", "test `ip -o a show | cut -d ' ' -f 2 | grep tun0 | wc -l` -eq 1 || kill 1" ]
interval: 11s
timeout: 2s
restart: "always"
network_mode: "service:cisco"
envoy:
image: envoyproxy/envoy-alpine:v1.20.0
depends_on:
- cisco
volumes:
- $PWD/storage/docker/envoy:/etc/envoy/
healthcheck:
test: [ "CMD-SHELL", "test `ip -o a show | cut -d ' ' -f 2 | grep tun0 | wc -l` -eq 1 || kill 1" ]
interval: 11s
timeout: 2s
restart: "always"
network_mode: "service:cisco"
networks:
main:
driver: bridge
enable_ipv6: false
ipam:
driver: default
config:
- subnet: 10.101.0.0/29
gateway: 10.101.0.1