To run nsq in cluster locally
docker-compose up -d
And add the below /etc/hosts
file
#NSQ localsetup
127.0.0.1 weave-nsq-nsqd1
127.0.0.1 weave-nsq-nsqd2
127.0.0.1 weave-nsq-nsqd3
curl -d "Writing to first node" http://localhost:4151/pub?topic=WeaveTopic
curl -d "Writing to second node" http://localhost:4251/pub?topic=WeaveTopic
curl -d "Writing to third node" http://localhost:4351/pub?topic=WeaveTopic
docker-compose down
http://127.0.0.1:4171/