-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
87 lines (84 loc) · 2 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
version: '2'
services:
consul-01:
image: timtosi/consul:latest
entrypoint:
- /usr/local/bin/consul
- agent
command:
- -dev
- -bootstrap
- -server
- -data-dir=/tmp
- -log-level=info
- -client=0.0.0.0
- -ui
hostname: consul-01
ports:
- "5011:8300"
- "5012:8301"
- "5012:8301/udp"
- "5013:8302"
- "5013:8302/udp"
- "5014:8400"
- "5015:8500"
- "5016:8600"
- "5017:53"
consul-02:
image: timtosi/consul:latest
entrypoint:
- /usr/local/bin/consul
- agent
command:
- -dev
- -server
- -data-dir=/tmp
- -log-level=info
- -client=0.0.0.0
- -join=consul-01
- -ui
hostname: consul-02
ports:
- "5021:8300"
- "5022:8301"
- "5022:8301/udp"
- "5023:8302"
- "5023:8302/udp"
- "5024:8400"
- "5025:8500"
- "5026:8600"
- "5027:53"
depends_on:
- consul-01
links:
- consul-01
consul-03:
image: timtosi/consul:latest
entrypoint:
- /usr/local/bin/consul
- agent
command:
- -dev
- -server
- -data-dir=/tmp
- -log-level=info
- -client=0.0.0.0
- -join=consul-01
- -ui
hostname: consul-03
ports:
- "5031:8300"
- "5032:8301"
- "5032:8301/udp"
- "5033:8302"
- "5033:8302/udp"
- "5034:8400"
- "5035:8500"
- "5036:8600"
- "5037:53"
depends_on:
- consul-01
- consul-02
links:
- consul-01
- consul-02