Skip to content

Instantly share code, notes, and snippets.

@bopjiang
Last active January 6, 2017 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bopjiang/cd153d2051b670ae82cae33b347d3b0c to your computer and use it in GitHub Desktop.
Save bopjiang/cd153d2051b670ae82cae33b347d3b0c to your computer and use it in GitHub Desktop.
NSQD docker file
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