Docker容器部署
version: '3'
services:
namesrv:
image: apache/rocketmq:latest
container_name: rmqnamesrv
ports:
- 9876:9876
networks:
- rocketmq
command: sh mqnamesrv
broker:
image: apache/rocketmq:latest
container_name: rmqbroker
ports:
- 10909:10909
- 10911:10911
- 10912:10912
environment:
- NAMESRV_ADDR=rmqnamesrv:9876
#volumes:
# - /data/rocketmq/broker/logs:/home/rocketmq/logs
# - /data/rocketmq/broker/store:/home/rocketmq/store
# - /data/rocketmq/broker/conf/broker.conf:/home/rocketmq/conf/broker.conf
depends_on:
- namesrv
networks:
- rocketmq
command: sh mqbroker
dashboard:
image: apacherocketmq/rocketmq-dashboard:latest
container_name: rmqdashboard
#下方为ulimit配置soft和hard的大小
ulimits:
nofile:
soft: 65536
hard: 65536
ports:
- 8080:8080
environment:
- JAVA_OPTS=-Drocketmq.namesrv.addr=namesrv:9876
depends_on:
- namesrv
networks:
- rocketmq
networks:
rocketmq:
driver: bridge
标签:broker,RocketMQ,conf,namesrv,9876,networks,rocketmq From: https://www.cnblogs.com/ReturnOfTheKing/p/18316180