This repository was archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
125 lines (121 loc) · 3.12 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
version: "3"
networks:
public-net:
enable_ipv6: true
driver: bridge
ipam:
driver: default
config:
- subnet: 10.100.0.0/24
gateway: 10.100.0.10
- subnet: 2001:db8:3200::/64
gateway: 2001:db8:3200::10
site-1:
enable_ipv6: true
driver: bridge
ipam:
driver: default
config:
- subnet: 10.10.0.0/24
gateway: 10.10.0.10
- subnet: 2001:db8:3210::/64
gateway: 2001:db8:3210::1000
site-2:
enable_ipv6: true
driver: bridge
ipam:
driver: default
config:
- subnet: 10.20.0.0/24
gateway: 10.20.0.10
- subnet: 2001:db8:3220::/64
gateway: 2001:db8:3220::1000
site-3:
enable_ipv6: true
driver: bridge
ipam:
driver: default
config:
- subnet: 10.30.0.0/24
gateway: 10.30.0.10
- subnet: 2001:db8:3230::/64
gateway: 2001:db8:3230::1000
services:
site-1:
image: ${IMAGE:-ghcr.io/webmeshproj/node:latest}
networks:
public-net:
ipv4_address: 10.100.0.1
ipv6_address: 2001:db8:3200::1
site-1:
ipv4_address: 10.10.0.1
ipv6_address: 2001:db8:3210::1
hostname: site-1
entrypoint:
- /webmesh-node
- --global.insecure
- --global.primary-endpoint=10.100.0.1
- --bootstrap.enabled
- --raft.in-memory
- --app-daemon
- --app-daemon-bind=0.0.0.0:8081
- --plugins.debug.listen-address=:6061
- --plugins.debug.enable-db-querier=true
ports:
- 8081:8081
- 6061:6061
cap_add: ["NET_ADMIN", "NET_RAW", "SYS_MODULE"]
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
site-2:
image: ${IMAGE:-ghcr.io/webmeshproj/node:latest}
networks:
public-net:
ipv4_address: 10.100.0.2
ipv6_address: 2001:db8:3200::2
site-2:
ipv4_address: 10.20.0.1
ipv6_address: 2001:db8:3220::1
hostname: site-2
entrypoint:
- /webmesh-node
- --global.insecure
- --global.primary-endpoint=10.100.0.2
- --bootstrap.enabled
- --raft.in-memory
- --app-daemon
- --app-daemon-bind=0.0.0.0:8082
- --plugins.debug.listen-address=:6062
- --plugins.debug.enable-db-querier=true
ports:
- 8082:8082
- 6062:6062
cap_add: ["NET_ADMIN", "NET_RAW", "SYS_MODULE"]
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
site-3:
image: ${IMAGE:-ghcr.io/webmeshproj/node:latest}
networks:
public-net:
ipv4_address: 10.100.0.3
ipv6_address: 2001:db8:3200::3
site-3:
ipv4_address: 10.30.0.1
ipv6_address: 2001:db8:3230::1
hostname: site-3
entrypoint:
- /webmesh-node
- --global.insecure
- --global.primary-endpoint=10.100.0.3
- --bootstrap.enabled
- --raft.in-memory
- --app-daemon
- --app-daemon-bind=0.0.0.0:8083
- --plugins.debug.listen-address=:6063
- --plugins.debug.enable-db-querier=true
ports:
- 8083:8083
- 6063:6063
cap_add: ["NET_ADMIN", "NET_RAW", "SYS_MODULE"]
sysctls:
- net.ipv6.conf.all.disable_ipv6=0