Skip to content

Instantly share code, notes, and snippets.

@heat
Created August 18, 2018 00:26
Show Gist options
  • Save heat/fd063c136a1cecd702c5d10188e81d61 to your computer and use it in GitHub Desktop.
Save heat/fd063c136a1cecd702c5d10188e81d61 to your computer and use it in GitHub Desktop.
nsq compose file
version: '3'
services:
lookup:
container_name: lookup
image: nsqio/nsq
command: /nsqlookupd
ports:
- "4160:4160"
- "4161:4161"
worker:
container_name: worker
image: nsqio/nsq
command: /nsqd -lookupd-tcp-address=lookup:4160 -broadcast-address=worker
depends_on:
- lookup
ports:
- "4150:4150"
- "4151:4151"
admin:
container_name: admin
image: nsqio/nsq
command: /nsqadmin -lookupd-http-address=lookup:4161
depends_on:
- lookup
ports:
- "4171:4171"
listen:
container_name: listen
image: nsqio/nsq
command: tail -f /dev/null
depends_on:
- lookup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment