-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdocker-compose.yml
85 lines (78 loc) · 1.8 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
79
80
81
82
83
84
85
version: '2'
# Use this docker-compose file to setup the test environment before running the
# tests.
services:
consul:
image: hashicorp/consul:latest
command: agent -server -dev -log-level debug -client 0.0.0.0
ports:
- 8500:8500
nsqlookupd-1:
image: nsqio/nsq:v0.3.8
command: >
/nsqlookupd
-broadcast-address localhost:4160
ports:
- 4160:4160
- 4161:4161
nsqlookupd-2:
image: nsqio/nsq:v0.3.8
command: >
/nsqlookupd
-broadcast-address localhost:4162
ports:
- 4162:4160
- 4163:4161
nsqlookupd-3:
image: nsqio/nsq:v0.3.8
command: >
/nsqlookupd
-broadcast-address localhost:4164
ports:
- 4164:4160
- 4165:4161
nsqd-1:
image: nsqio/nsq:v0.3.8
command: >
/nsqd
-broadcast-address localhost:4150
-lookupd-tcp-address nsqlookupd-1:4160
-lookupd-tcp-address nsqlookupd-2:4160
-lookupd-tcp-address nsqlookupd-3:4160
ports:
- 4150:4150
- 4151:4151
depends_on:
- nsqlookupd-1
- nsqlookupd-2
- nsqlookupd-3
nsqd-2:
image: nsqio/nsq:v0.3.8
command: >
/nsqd
-broadcast-address localhost:4152
-lookupd-tcp-address nsqlookupd-1:4160
-lookupd-tcp-address nsqlookupd-2:4160
-lookupd-tcp-address nsqlookupd-3:4160
ports:
- 4152:4150
- 4153:4151
depends_on:
- nsqlookupd-1
- nsqlookupd-2
- nsqlookupd-3
nsqd-3:
image: nsqio/nsq:v0.3.8
command: >
/nsqd
-broadcast-address localhost:4154
-lookupd-tcp-address nsqlookupd-1:4160
-lookupd-tcp-address nsqlookupd-2:4160
-lookupd-tcp-address nsqlookupd-3:4160
ports:
- 4154:4150
- 4155:4151
depends_on:
- nsqlookupd-1
- nsqlookupd-2
- nsqlookupd-3