-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
125 lines (115 loc) · 2.57 KB
/
docker-compose.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: vpnham_dev
networks:
net0:
ipam:
config:
- subnet: 10.0.0.0/16
net1:
ipam:
config:
- subnet: 10.1.0.0/16
wg00:
ipam:
config:
- subnet: 192.168.255.0/28
wg01:
ipam:
config:
- subnet: 192.168.255.16/28
wg10:
ipam:
config:
- subnet: 192.168.255.32/28
wg11:
ipam:
config:
- subnet: 192.168.255.48/28
services:
br-lft-act:
build: .
container_name: br-lft-act
environment:
VPNHAM_LOG_LEVEL: ${VPNHAM_LOG_LEVEL}
VPNHAM_LOG_MODE: dev
ports:
- 8000:8000
- 8100:8080
volumes:
- type: bind
source: ./.dev/br-lft-act.yaml
target: /app/.vpnham.yaml
cap_add:
- NET_ADMIN
networks:
net0:
ipv4_address: 10.0.0.2
wg00:
ipv4_address: 192.168.255.2 # left/active <-> right/active
wg01:
ipv4_address: 192.168.255.18 # left/active <-> right/standby
br-lft-sby:
build: .
container_name: br-lft-sby
environment:
VPNHAM_LOG_LEVEL: ${VPNHAM_LOG_LEVEL}
VPNHAM_LOG_MODE: dev
volumes:
- type: bind
source: ./.dev/br-lft-sby.yaml
target: /app/.vpnham.yaml
ports:
- 8001:8001
- 8101:8080
cap_add:
- NET_ADMIN
networks:
net0:
ipv4_address: 10.0.0.3
wg11:
ipv4_address: 192.168.255.50 # left/standby <-> right/standby
wg10:
ipv4_address: 192.168.255.34 # left/standby <-> right/active
br-rgt-act:
build: .
container_name: br-rgt-act
environment:
VPNHAM_LOG_LEVEL: ${VPNHAM_LOG_LEVEL}
VPNHAM_LOG_MODE: dev
ports:
- 8010:8010
- 8110:8080
volumes:
- type: bind
source: ./.dev/br-rgt-act.yaml
target: /app/.vpnham.yaml
cap_add:
- NET_ADMIN
networks:
net1:
ipv4_address: 10.1.0.2
wg00:
ipv4_address: 192.168.255.3 # right/active <-> left/active
wg10:
ipv4_address: 192.168.255.35 # right/active <-> left/standby
br-rgt-sby:
build: .
container_name: br-rgt-sby
environment:
VPNHAM_LOG_LEVEL: ${VPNHAM_LOG_LEVEL}
VPNHAM_LOG_MODE: dev
ports:
- 8011:8011
- 8111:8080
volumes:
- type: bind
source: ./.dev/br-rgt-sby.yaml
target: /app/.vpnham.yaml
cap_add:
- NET_ADMIN
networks:
net1:
ipv4_address: 10.1.0.3
wg11:
ipv4_address: 192.168.255.51 # right/standby <-> left/standby
wg01:
ipv4_address: 192.168.255.19 # right/standby <-> left/active