完善 rocketmq 镜像

This commit is contained in:
KennyLee 2020-03-09 09:40:34 +08:00
parent b3d17adc3b
commit caa25d0b40
5 changed files with 16 additions and 1 deletions

View File

@ -5,3 +5,5 @@ deleteWhen = 04
fileReservedTime = 48
brokerRole = ASYNC_MASTER
flushDiskType = ASYNC_FLUSH
#set `brokerIP1` if you want to set physical IP as broker IP.
#brokerIP1=127.0.0.1

View File

@ -5,3 +5,6 @@ deleteWhen = 04
fileReservedTime = 48
brokerRole = ASYNC_MASTER
flushDiskType = ASYNC_FLUSH
#set `brokerIP1` if you want to set physical IP as broker IP.
#brokerIP1=127.0.0.1

View File

@ -27,6 +27,8 @@ services:
- ./data/broker/store:/home/rocketmq/store
- ./broker1/conf/broker.conf:/opt/rocketmq-${ROCKETMQ_VERSION}/conf/broker.conf
command: sh mqbroker -c /opt/rocketmq-${ROCKETMQ_VERSION}/conf/broker.conf
depends_on:
- namesrv
#Service for another broker -- broker1
broker1:
@ -45,3 +47,5 @@ services:
- ./data1/broker/store:/home/rocketmq/store
- ./broker2/conf/broker.conf:/opt/rocketmq-${ROCKETMQ_VERSION}/conf/broker.conf
command: sh mqbroker -c /opt/rocketmq-${ROCKETMQ_VERSION}/conf/broker.conf
depends_on:
- namesrv

View File

@ -0,0 +1,3 @@
listenPort = 10911
#set `brokerIP1` if you want to set physical IP as broker IP.
brokerIP1 = 127.0.0.1

View File

@ -25,5 +25,8 @@ services:
volumes:
- ./data/broker/logs:/home/rocketmq/logs
- ./data/broker/store:/home/rocketmq/store
command: sh mqbroker
- ./conf/broker.conf:/home/rocketmq/rocketmq-4.6.0/conf/broker.conf
command: sh mqbroker -n namesrv:9876 -c ../conf/broker.conf
depends_on:
- namesrv