From 93cda2d403d6406243abf7eaaf72982c4935320a Mon Sep 17 00:00:00 2001 From: odbozhou <877036922@qq.com> Date: Mon, 3 Apr 2023 15:58:07 +0800 Subject: [PATCH 1/2] optimize single broker docker --- templates/play-docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/play-docker.sh b/templates/play-docker.sh index 649bb38..89ec835 100755 --- a/templates/play-docker.sh +++ b/templates/play-docker.sh @@ -21,7 +21,7 @@ start_namesrv_broker() # Start nameserver docker run -d -v `pwd`/data/namesrv/logs:/home/rocketmq/logs --name rmqnamesrv -p 9876:9876 apache/rocketmq:ROCKETMQ_VERSION${TAG_SUFFIX} sh mqnamesrv # Start Broker - docker run -d -v `pwd`/data/broker/logs:/home/rocketmq/logs -v `pwd`/data/broker/store:/home/rocketmq/store --name rmqbroker --link rmqnamesrv:namesrv -e "NAMESRV_ADDR=namesrv:9876" -p 10909:10909 -p 10911:10911 -p 10912:10912 apache/rocketmq:ROCKETMQ_VERSION${TAG_SUFFIX} sh mqbroker + docker run -d -v `pwd`/data/broker/logs:/home/rocketmq/logs -v `pwd`/data/broker/store:/home/rocketmq/store -v `pwd`/data/broker/conf/broker.conf:/home/rocketmq/rocketmq-ROCKETMQ_VERSION/conf/broker.conf --name rmqbroker --link rmqnamesrv:namesrv -e "NAMESRV_ADDR=namesrv:9876" -p 10909:10909 -p 10911:10911 -p 10912:10912 apache/rocketmq:ROCKETMQ_VERSION${TAG_SUFFIX}sh mqbroker -c /home/rocketmq/rocketmq-ROCKETMQ_VERSION/conf/broker.conf } if [ $# -lt 1 ]; then From d13595451565ad779938626e02175a5e71d0573c Mon Sep 17 00:00:00 2001 From: odbozhou <877036922@qq.com> Date: Fri, 7 Apr 2023 15:47:26 +0800 Subject: [PATCH 2/2] optimize single broker docker --- templates/play-docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/play-docker.sh b/templates/play-docker.sh index 89ec835..37968f8 100755 --- a/templates/play-docker.sh +++ b/templates/play-docker.sh @@ -21,7 +21,7 @@ start_namesrv_broker() # Start nameserver docker run -d -v `pwd`/data/namesrv/logs:/home/rocketmq/logs --name rmqnamesrv -p 9876:9876 apache/rocketmq:ROCKETMQ_VERSION${TAG_SUFFIX} sh mqnamesrv # Start Broker - docker run -d -v `pwd`/data/broker/logs:/home/rocketmq/logs -v `pwd`/data/broker/store:/home/rocketmq/store -v `pwd`/data/broker/conf/broker.conf:/home/rocketmq/rocketmq-ROCKETMQ_VERSION/conf/broker.conf --name rmqbroker --link rmqnamesrv:namesrv -e "NAMESRV_ADDR=namesrv:9876" -p 10909:10909 -p 10911:10911 -p 10912:10912 apache/rocketmq:ROCKETMQ_VERSION${TAG_SUFFIX}sh mqbroker -c /home/rocketmq/rocketmq-ROCKETMQ_VERSION/conf/broker.conf + docker run -d -v `pwd`/data/broker/logs:/home/rocketmq/logs -v `pwd`/data/broker/store:/home/rocketmq/store -v `pwd`/data/broker/conf/broker.conf:/home/rocketmq/rocketmq-ROCKETMQ_VERSION/conf/broker.conf --name rmqbroker --link rmqnamesrv:namesrv -e "NAMESRV_ADDR=namesrv:9876" -p 10909:10909 -p 10911:10911 -p 10912:10912 apache/rocketmq:ROCKETMQ_VERSION${TAG_SUFFIX} sh mqbroker -c /home/rocketmq/rocketmq-ROCKETMQ_VERSION/conf/broker.conf } if [ $# -lt 1 ]; then