kimmking commented on a change in pull request #4911: translatedocker-compos.md 
document to chinese
URL: 
https://github.com/apache/incubator-shardingsphere/pull/4911#discussion_r398303282
 
 

 ##########
 File path: examples/docker/docker-compose-zh.md
 ##########
 @@ -0,0 +1,18 @@
+## 使用docker-compose去初始化开始环境
+在开始使用docker compose之前,根据下述参考网址安装docker和docker-compose
+
+#### sharding-jdbc
+1. 运行'cd docker/sharding-jdbc/sharding',进入docker文件夹
+2. 运行'docker-compose up -d',启动docker compose环境
+3. 根据需要,开启mysql / etcd / zookeeper
+4. 如果有端口冲突,在docker-compose.yml中修改相应的端口,然后再次使用'docker-compose up -d'启动docker 
compose
+5. 如果需要关闭相关程序环境,使用命令'docker-compose down'
+
+#### sharding-proxy
+1. 运行'cd docker/sharding-jdbc/sharding',进入docker文件夹
+2. 运行'docker-compose up -d',启动docker compose环境
+3. 运行 `mysql -h127.0.0.1 -P13308 -proot -uroot`登录代理
+4. 如果有端口冲突,在docker-compose.yml中修改相应的端口,然后再次使用'docker-compose up -d'启动docker 
compose
+5. 如果需要关闭相关程序环境,使用命令'docker-compose down'
+
+谨慎使用docker删除指令`docker ps -a -q`去删除docker容器
 
 Review comment:
   it's better 需要注意,请谨慎使用....

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to