Nsq 启动!
官方文档 | 通俗易懂入门
start
添加 docker-compose.yaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| version: "3" services: nsqlookupd: image: nsqio/nsq command: /nsqlookupd restart: always ports: - "4160:4160" - "4161:4161" nsqd: image: nsqio/nsq hostname: nsqd command: /nsqd --lookupd-tcp-address=nsqlookupd:4160 --broadcast-address=nsqd depends_on: - nsqlookupd ports: - "4150:4150" - "4151:4151" restart: always
nsqadmin: image: nsqio/nsq command: /nsqadmin --lookupd-http-address=nsqlookupd:4161 depends_on: - nsqlookupd ports: - "4171:4171"
|
执行 docker-compose up -d