Last active
January 6, 2017 09:35
-
-
Save bopjiang/cd153d2051b670ae82cae33b347d3b0c to your computer and use it in GitHub Desktop.
NSQD docker file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
nsqlookupd: | |
image: nsqio/nsq:v0.3.8 | |
command: /nsqlookupd | |
restart: always | |
ports: | |
- "4160:4160" | |
- "4161:4161" | |
volumes: | |
- "./data:/data" | |
nsqd4150: | |
image: nsqio/nsq:v0.3.8 | |
command: /nsqd --broadcast-address=101.201.209.224 --lookupd-tcp-address=nsqlookupd:4160 | |
restart: always | |
ports: | |
- "4150:4150" | |
- "4151:4151" | |
volumes: | |
- "./data:/data" | |
nsqd4152: | |
image: nsqio/nsq:v0.3.8 | |
command: /nsqd -tcp-address="0.0.0.0:4152" -http-address="0.0.0.0:4153" --broadcast-address=101.201.209.224 --lookupd-tcp-address=nsqlookupd:4160 | |
restart: always | |
ports: | |
- "4152:4152" | |
- "4153:4153" | |
volumes: | |
- "./data:/data" | |
nsqadmin: | |
image: nsqio/nsq:v0.3.8 | |
command: /nsqadmin --lookupd-http-address=nsqlookupd:4161 | |
restart: always | |
ports: | |
- "4171:4171" | |
volumes: | |
- "./data:/data" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment