赞
踩
目录
- version: '3.5'
- services:
- rmqnamesrv:
- image: foxiswho/rocketmq:server
- container_name: rmqnamesrv
- ports:
- - 9876:9876
- networks:
- rmq:
- aliases:
- - rmqnamesrv
- rmqbroker:
- image: foxiswho/rocketmq:broker
- container_name: rmqbroker
- ports:
- - 10909:10909
- - 10911:10911
- volumes:
- - ./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:
- rmq:
- aliases:
- - rmqbroker
- rmqconsole:
- image: styletang/rocketmq-console-ng
- container_name: rmqconsole
- ports:
- - 8090:8080
- environment:
- JAVA_OPTS: "-Drocketmq.namesrv.addr=rmqnamesrv:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false"
- depends_on:
- - rmqnamesrv
- networks:
- rmq:
- aliases:
- - rmqconsole
- networks:
- rmq:
- name: rmq
- driver: bridge
- # 集群名称
- brokerClusterName = DefaultCluster
- # 节点名称
-
- brokerName = broker-a
- # broker id节点ID, 0 表示 master, 其他的正整数表示 slave,不能小于0
-
- brokerId = 0
- # 在每天的什么时间删除已经超过文件保留时间的 commit log,默认值04
-
- deleteWhen = 04
- # 以小时计算的文件保留时间 默认值72小时
-
- fileReservedTime = 72
- # Broker角色
-
- brokerRole = ASYNC_MASTER
- # 刷盘方式
-
- flushDiskType = ASYNC_FLUSH
- # Broker服务地址,内部使用填内网ip,如果是需要给外部使用填公网ip,自行更改
-
- brokerIP1 = 192.168.11.99
docker-compose up -d
输入:http://192.168.11.44:8090/#/
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。