mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-29 18:38:34 +08:00
完善 rocketmq 镜像
This commit is contained in:
parent
b3d17adc3b
commit
caa25d0b40
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
3
rocketmq/standalone/conf/broker.conf
Normal file
3
rocketmq/standalone/conf/broker.conf
Normal file
@ -0,0 +1,3 @@
|
||||
listenPort = 10911
|
||||
#set `brokerIP1` if you want to set physical IP as broker IP.
|
||||
brokerIP1 = 127.0.0.1
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user