Skip to content

Instantly share code, notes, and snippets.

@jiahut
Forked from heipei/docker-compose.yml
Created February 14, 2019 01:05
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 jiahut/2f71fec8219ba595d36b4339b0afe143 to your computer and use it in GitHub Desktop.
Save jiahut/2f71fec8219ba595d36b4339b0afe143 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