Skip to content

Instantly share code, notes, and snippets.

@heipei
Created June 18, 2016 08:00
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save heipei/df865e044d6065a0b3cb5c1d4fac0b07 to your computer and use it in GitHub Desktop.
Save heipei/df865e044d6065a0b3cb5c1d4fac0b07 to your computer and use it in GitHub Desktop.
Docker Compose for nsqd, nsqlookupd and nsqadmin, all linked
nsqlookupd:
image: nsqio/nsq
ports:
- "4160:4160"
- "4161:4161"
command: /nsqlookupd
nsqd:
image: nsqio/nsq
ports:
- "4150:4150"
- "4151:4151"
links:
- nsqlookupd:nsqlookupd
command: /nsqd -lookupd-tcp-address=nsqlookupd:4160 -broadcast-address=nsqd
nsqadmin:
image: nsqio/nsq
ports:
- "4171:4171"
links:
- nsqlookupd:nsqlookupd
- nsqd:nsqd
command: /nsqadmin -lookupd-http-address=nsqlookupd:4161
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment