-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (76 loc) · 2.57 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
version: '2'
services:
node-a:
build: .
links:
- node-b
- node-c
- node-d
- node-e
- node-f
ports:
- "8500:8500"
- "8300:8300"
- "8301:8301"
- "8302:8302"
node-b:
build: .
ports:
- "8501:8500"
- "8310:8300"
- "8311:8301"
- "8312:8302"
node-c:
build: .
ports:
- "8502:8500"
- "8320:8300"
- "8321:8301"
- "8322:8302"
node-d:
build: .
links:
- node-b
- node-c
- node-e
- node-f
command: /bin/consul agent -dc=dc2 -client 0.0.0.0 -server -data-dir /var/consul -bootstrap-expect 3
ports:
- "8505:8500"
- "8330:8300"
- "8331:8301"
- "8332:8302"
node-e:
build: .
command: /bin/consul agent -dc=dc2 -client 0.0.0.0 -server -data-dir /var/consul -bootstrap-expect 3
ports:
- "8506:8500"
- "8340:8300"
- "8341:8301"
- "8342:8302"
node-f:
build: .
command: /bin/consul agent -dc=dc2 -client 0.0.0.0 -server -data-dir /var/consul -bootstrap-expect 3
ports:
- "8507:8500"
- "8350:8300"
- "8351:8301"
- "8352:8302"
agent-a:
build: .
links:
- node-a
- node-b
- node-c
ports:
- "8503:8500"
command: /bin/consul agent -client 0.0.0.0 -data-dir /var/consul
agent-b:
build: .
links:
- node-a
- node-b
- node-c
ports:
- "8504:8500"
command: /bin/consul agent -client 0.0.0.0 -data-dir /var/consul