This is an automated email from the ASF dual-hosted git repository.

vongosling pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-docker.git

commit cd2679348c6e4ed4e4d5972559e6cc02f694f058
Author: rongtongjin <794220...@qq.com>
AuthorDate: Mon Nov 18 16:13:50 2019 +0800

    fix(template):expose port in playdocker.sh and fix typo about dledger
---
 README.md                                                     | 4 ++--
 templates/{play-docker-deledger.sh => play-docker-dledger.sh} | 0
 templates/play-docker.sh                                      | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index cef863b..b8cc5a7 100644
--- a/README.md
+++ b/README.md
@@ -75,14 +75,14 @@ cd stages/4.5.0
 
 ```
 
-#### 4. Cluster of Deledger storage 
+#### 4. Cluster of Dledger storage 
 
 Run: (Note: This feature needs RMQ version is 4.4.0 or above)
 
 ```
 cd stages/4.5.0 
 
-./play-docker-deledger.sh
+./play-docker-dledger.sh
 
 ```
 
diff --git a/templates/play-docker-deledger.sh 
b/templates/play-docker-dledger.sh
similarity index 100%
rename from templates/play-docker-deledger.sh
rename to templates/play-docker-dledger.sh
diff --git a/templates/play-docker.sh b/templates/play-docker.sh
index aad4920..04f47e0 100755
--- a/templates/play-docker.sh
+++ b/templates/play-docker.sh
@@ -19,9 +19,9 @@ start_namesrv_broker()
 {
     TAG_SUFFIX=$1
     # Start nameserver
-    docker run -d -v `pwd`/data/namesrv/logs:/home/rocketmq/logs --name 
rmqnamesrv apacherocketmq/rocketmq:ROCKETMQ_VERSION${TAG_SUFFIX} sh mqnamesrv
+    docker run -d -v `pwd`/data/namesrv/logs:/home/rocketmq/logs --name 
rmqnamesrv -p 9876:9876 apacherocketmq/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" 
apacherocketmq/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 --name rmqbroker --link 
rmqnamesrv:namesrv -e "NAMESRV_ADDR=namesrv:9876" -p 10909:10909 -p 10911:10911 
-p 10912:10912 apacherocketmq/rocketmq:ROCKETMQ_VERSION${TAG_SUFFIX} sh mqbroker
 }
 
 if [ $# -lt 1 ]; then

Reply via email to