Last active
January 19, 2019 16:18
-
-
Save dsewnr/bd23e8608fadfd5048a2b5c3477be14d to your computer and use it in GitHub Desktop.
docker-compose.yml for NSQ
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
# DON'T FORGET TO ADD "127.0.0.1 nsqd" TO /etc/hosts | |
version: '3' | |
services: | |
nsqlookupd: | |
image: nsqio/nsq | |
networks: | |
- nsq-network | |
hostname: nsqlookupd | |
ports: | |
- "4161:4161" | |
- "4160:4160" | |
command: /nsqlookupd | |
nsqd: | |
image: nsqio/nsq | |
depends_on: | |
- nsqlookupd | |
hostname: nsqd | |
volumes: | |
- ./data:/data | |
networks: | |
- nsq-network | |
ports: | |
- "4151:4151" | |
- "4150:4150" | |
command: /nsqd --broadcast-address=nsqd --lookupd-tcp-address=nsqlookupd:4160 --data-path=/data | |
nsqadmin: | |
image: nsqio/nsq | |
depends_on: | |
- nsqlookupd | |
hostname: nsqadmin | |
ports: | |
- "4171:4171" | |
networks: | |
- nsq-network | |
command: /nsqadmin --lookupd-http-address=nsqlookupd:4161 | |
networks: | |
nsq-network: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment