这个compose的yml有啥问题吗?我创建的本地不能连接到RocketMQ
version: '3.8'
services:
namesrv:
image: apache/rocketmq:4.9.6
container_name: rmqnamesrv
ports:
- 9876:9876
networks:
- rocketmq
command: sh mqnamesrv
broker:
image: apache/rocketmq:4.9.6
container_name: rmqbroker
ports:
- 10909:10909
- 10911:10911
- 10912:10912
environment:
- NAMESRV_ADDR=rmqnamesrv:9876
volumes:
- "./conf/broker/broker.conf:/home/rocketmq/rocketmq-4.9.6/conf/broker.conf"
- "./conf/acl:/home/rocketmq/acl"
depends_on:
- namesrv
networks:
- rocketmq
command: sh mqbroker -c /home/rocketmq/rocketmq-4.9.6/conf/broker.conf
dashboard:
image: apacherocketmq/rocketmq-dashboard
ports:
- 8888:8080
container_name: rocketmq-dashboard
networks:
- rocketmq
volumes:
- './dashboard/:/tmp/rocketmq-console/data'
environment:
# - JAVA_OPTS=-Drocketmq.namesrv.addr=rmqnamesrv:9876 -Drocketmq.listen.port=10911
- NAMESRV_ADDR=rmqnamesrv:9876
- ROCKETMQ_CONFIG_LOGIN_REQUIRED=true
networks:
rocketmq:
driver: bridge
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
高弹性低成本、更稳定更安全、智能化免运维的消息队列服务,涵盖RocketMQ、Kafka、RabbitMQ、MQTT、MNS等。 RocketMQ一站式学习:https://rocketmq-learning.com