一键运行RocketMQ5.3和Dashboard
目录
- 一键运行RocketMQ5.3和Dashboard
- 通过Docker Compose 来一键启动
- 运行的容器包括
- docker-compose.yml文件
- 运行命令启动
- 本地效果查看
- 参考信息
通过Docker Compose 来一键启动
运行的容器包括
- NameServer
- Broker
- Proxy
- DashBoard
docker-compose.yml文件
- 这个yml文件比官网部署文档多了一个DashBoard部分
services:namesrv:image: apache/rocketmq:5.3.0container_name: rmqnamesrvports:- 9876:9876networks:- rocketmqcommand: sh mqnamesrvbroker:image: apache/rocketmq:5.3.0container_name: rmqbrokerports:- 10909:10909- 10911:10911- 10912:10912environment:- NAMESRV_ADDR=rmqnamesrv:9876depends_on:- namesrvnetworks:- rocketmqcommand: sh mqbrokerproxy:image: apache/rocketmq:5.3.0container_name: rmqproxynetworks:- rocketmqdepends_on:- broker- namesrvports:- 8080:8080- 8081:8081restart: on-failureenvironment:- NAMESRV_ADDR=rmqnamesrv:9876command: sh mqproxyrocketmq-dashboard:image: apacherocketmq/rocketmq-dashboard:latestcontainer_name: rmdashboardnetworks:- rocketmqdepends_on:- broker- namesrv- proxyports:- 8008:8080environment:- JAVA_OPTS=-Drocketmq.namesrv.addr=rmqnamesrv:9876
networks:rocketmq:driver: bridge
运行命令启动
docker-compose up -d
本地效果查看
- 浏览器输入: http://localhost:8008/
参考信息