catdocker-compose-mq.yml
version:‘3’
services:
rmqnamesrv:
image:foxiswho/rocketmq:server
container_name:rmqnamesrv
ports:
-9876:9876
volumes:
-/etc/localtime:/etc/localtime:ro
-./rocketmq/server/logs:/opt/logs
-./rocketmq/server/store:/opt/store
networks:
mq
aliases:
-rmqnamesrv
rmqbroker:
image:foxiswho/rocketmq:broker
container_name:rmqbroker
ports:
-10909:10909
-10911:10911
volumes:
-/etc/localtime:/etc/localtime:ro
-./rocketmq/broker/logs:/opt/logs
-./rocketmq/broker/store:/opt/store
-./rocketmq/broker/conf/broker.conf:/etc/rocketmq/broker.conf
environment:
NAMESRV_ADDR:“rmqnamesrv:9876”
JAVA_OPTS:"-Duser.home=/opt"
JAVA_OPT_EXT:"-server-Xms128m-Xmx128m-Xmn128m"
command:mqbroker-c/etc/rocketmq/broker.conf
depends_on:
-rmqnamesrv
networks:
mq:
aliases:
-rmqbroker
rmqconsole:
image:styletang/rocketmq-console-ng
container_name:rmqconsole
ports:
-38080:8080
environment:
JAVA_OPTS:"-Drocketmq.namesrv.addr=rmqnamesrv:9876
-Dcom.rocketmq.sendMessageWithVIPChannel=false"
depends_on:
-rmqnamesrv
networks:
mq:
aliases:
-rmqconsole
networks:
mq:
driver:bridge
ipam:
driver:default
config:
-subnet:192.168.188.0/24
Rocket mq安装
最新推荐文章于 2022-04-24 15:32:07 发布