-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (44 loc) · 1.33 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
version: '3'
services:
nsqlookupda:
image: nsqio/nsq:v${NSQ_VERSION-1.1.0}
command: /nsqlookupd --broadcast-address ${HOST-nsqlookupda} --http-address=0.0.0.0:4177 --tcp-address=0.0.0.0:4176
ports:
- "4177:4177"
- "4176:4176"
nsqlookupdb:
image: nsqio/nsq:v${NSQ_VERSION-1.1.0}
command: /nsqlookupd --broadcast-address ${HOST-nsqlookupdb} --http-address=0.0.0.0:4179 --tcp-address=0.0.0.0:4178
ports:
- "4179:4179"
- "4178:4178"
nsqd:
image: nsqio/nsq:v${NSQ_VERSION-1.1.0}
command: /nsqd --broadcast-address ${HOST-nsqd} --http-address=0.0.0.0:4157 --tcp-address=0.0.0.0:4156 --lookupd-tcp-address=nsqlookupda:4176 --lookupd-tcp-address=nsqlookupdb:4178
depends_on:
- nsqlookupda
- nsqlookupdb
ports:
- "4157:4157"
- "4156:4156"
nsqadmin:
image: nsqio/nsq:v${NSQ_VERSION-1.1.0}
command: /nsqadmin --lookupd-http-address=nsqlookupda:4177 --lookupd-http-address=nsqlookupdb:4179
depends_on:
- nsqlookupda
- nsqlookupdb
ports:
- "4171:4171"
# test:
# environment:
# - NSQ_LOOKUP_A_HOST=nsqlookupda
# - NSQ_LOOKUP_B_HOST=nsqlookupdb
# - NSQ_HOST=nsqd
# - NO_DEAMONS=1
# depends_on:
# - nsqlookupda
# - nsqlookupdb
# - nsqd
# build:
# context: .
# dockerfile: Dockerfile