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

yui pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu-website.git


The following commit(s) were added to refs/heads/main by this push:
     new db9576f31f Update docker-compose install docs (#538)
db9576f31f is described below

commit db9576f31f54963e5de7f06ddd423b48e8ad06ec
Author: Kunshuai Zhu <[email protected]>
AuthorDate: Sun Apr 17 18:47:56 2022 +0800

    Update docker-compose install docs (#538)
    
    * Update docker-compose install docs
    
    * Update docker-compose install docs
    
    * Update docker-compose install docs
---
 docs/deployment/deployment-docker-compose.md       | 23 ++++++++++++----------
 .../deployment/deployment-docker-compose.md        | 22 +++++++++++----------
 .../deployment/deployment-docker-compose.md        | 22 +++++++++++----------
 .../deployment/deployment-docker-compose.md        | 23 ++++++++++++----------
 4 files changed, 50 insertions(+), 40 deletions(-)

diff --git a/docs/deployment/deployment-docker-compose.md 
b/docs/deployment/deployment-docker-compose.md
index bef45f008b..89c740486e 100644
--- a/docs/deployment/deployment-docker-compose.md
+++ b/docs/deployment/deployment-docker-compose.md
@@ -7,24 +7,27 @@ description: Docker-compose Deployment
 
 This article introduces the use of `docker-compose` to deploy the `Apache 
ShenYu` gateway.
 
-### start admin and bootstrap
-
-Choose one as the data source. It can be `h2` or `mysql` or `pg`.
-
-* use `h2`
+### Download shell script
 
 ```shell
-curl 
https://raw.githubusercontent.com/apache/incubator-shenyu/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
 | bash -s master h2
+curl -O 
https://raw.githubusercontent.com/apache/incubator-shenyu/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
 ```
 
-* use `mysql`
+### execute script
+
+This script will download the required configuration files and 
mysql-connector, and can be executed repeatedly if the download fails.
 
 ```shell
-curl 
https://raw.githubusercontent.com/apache/incubator-shenyu/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
 | bash -s master mysql
+sh ./install.sh #The latest configuration is pulled by default. If you need to 
deploy the released version, you can add a parameter to indicate the version 
number, such as: v2.4.2 or latest
 ```
 
-* use `pg`
+### Modify the configuration file
+
+The configuration file downloaded by the script can be modified.
+
+### Execute docker-compose
 
 ```shell
-curl 
https://raw.githubusercontent.com/apache/incubator-shenyu/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
 | bash -s master pg
+cd shenyu-${VERSION}
+docker-compose -f ./shenyu-${VERSION}/docker-compose.yaml up -d
 ```
diff --git 
a/i18n/zh/docusaurus-plugin-content-docs/current/deployment/deployment-docker-compose.md
 
b/i18n/zh/docusaurus-plugin-content-docs/current/deployment/deployment-docker-compose.md
index 1db1dea3ad..14ef693e9f 100644
--- 
a/i18n/zh/docusaurus-plugin-content-docs/current/deployment/deployment-docker-compose.md
+++ 
b/i18n/zh/docusaurus-plugin-content-docs/current/deployment/deployment-docker-compose.md
@@ -7,24 +7,26 @@ description: Docker-compose Deployment
 
 本文介绍使用 `docker-compose` 来部署 `Apache ShenYu` 网关。
 
-### 启动 admin 和 bootstrap
-
-选择一个作为数据源。可以是 `h2` 或者 `mysql` 或者 `pg`。
-
-* 利用 `h2`
+### 下载 shell 脚本
 
 ```shell
-curl 
https://raw.githubusercontent.com/apache/incubator-shenyu/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
 | bash -s master h2
+curl -O 
https://raw.githubusercontent.com/apache/incubator-shenyu/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
 ```
 
-* 利用 `mysql`
+### 执行脚本
+
+这个脚本会下载需要的配置文件、mysql-connector,如果发现下载失败可以重复执行。
 
 ```shell
-curl 
https://raw.githubusercontent.com/apache/incubator-shenyu/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
 | bash -s master mysql
+sh ./install.sh #默认拉取最新配置,如果需要部署已发布版本,可增加一个参数表示版本号,比如:v2.4.2 或 latest
 ```
 
-* 利用 `pg`
+### 修改配置文件
+
+可以修改脚本下载的配置文件。
+
+### 执行 docker-compose
 
 ```shell
-curl 
https://raw.githubusercontent.com/apache/incubator-shenyu/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
 | bash -s master pg
+docker-compose -f ./shenyu-${VERSION}/docker-compose.yaml up -d
 ```
diff --git 
a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.2/deployment/deployment-docker-compose.md
 
b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.2/deployment/deployment-docker-compose.md
index 1db1dea3ad..baf5c6062f 100644
--- 
a/i18n/zh/docusaurus-plugin-content-docs/version-2.4.2/deployment/deployment-docker-compose.md
+++ 
b/i18n/zh/docusaurus-plugin-content-docs/version-2.4.2/deployment/deployment-docker-compose.md
@@ -7,24 +7,26 @@ description: Docker-compose Deployment
 
 本文介绍使用 `docker-compose` 来部署 `Apache ShenYu` 网关。
 
-### 启动 admin 和 bootstrap
-
-选择一个作为数据源。可以是 `h2` 或者 `mysql` 或者 `pg`。
-
-* 利用 `h2`
+### 下载 shell 脚本
 
 ```shell
-curl 
https://raw.githubusercontent.com/apache/incubator-shenyu/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
 | bash -s master h2
+curl -O 
https://raw.githubusercontent.com/apache/incubator-shenyu/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
 ```
 
-* 利用 `mysql`
+### 执行脚本
+
+这个脚本会下载需要的配置文件、mysql-connector,如果发现下载失败可以重复执行。
 
 ```shell
-curl 
https://raw.githubusercontent.com/apache/incubator-shenyu/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
 | bash -s master mysql
+sh ./install.sh v2.4.2 #默认拉取最新配置,如果需要部署已发布版本,可增加一个参数表示版本号,比如:v2.4.2 或 latest
 ```
 
-* 利用 `pg`
+### 修改配置文件
+
+可以修改脚本下载的配置文件。
+
+### 执行 docker-compose
 
 ```shell
-curl 
https://raw.githubusercontent.com/apache/incubator-shenyu/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
 | bash -s master pg
+docker-compose -f ./shenyu-${VERSION}/docker-compose.yaml up -d
 ```
diff --git 
a/versioned_docs/version-2.4.2/deployment/deployment-docker-compose.md 
b/versioned_docs/version-2.4.2/deployment/deployment-docker-compose.md
index 9e371f5a2d..4443cc0f48 100644
--- a/versioned_docs/version-2.4.2/deployment/deployment-docker-compose.md
+++ b/versioned_docs/version-2.4.2/deployment/deployment-docker-compose.md
@@ -7,24 +7,27 @@ description: Docker-compose Deployment
 
 This article introduces the use of `docker-compose` to deploy the `Apache 
ShenYu` gateway.
 
-### start admin and bootstrap
-
-Choose one as the data source. It can be `h2` or `mysql` or `pg`.
-
-* use `h2`
+### Download shell script
 
 ```shell
-curl 
https://raw.githubusercontent.com/apache/incubator-shenyu/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
 | bash -s v2.4.2 h2
+curl -O 
https://raw.githubusercontent.com/apache/incubator-shenyu/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
 ```
 
-* use `mysql`
+### execute script
+
+This script will download the required configuration files and 
mysql-connector, and can be executed repeatedly if the download fails.
 
 ```shell
-curl 
https://raw.githubusercontent.com/apache/incubator-shenyu/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
 | bash -s v2.4.2 mysql
+sh ./install.sh v2.4.2 #The latest configuration is pulled by default. If you 
need to deploy the released version, you can add a parameter to indicate the 
version number, such as: v2.4.2 or latest
 ```
 
-* use `pg`
+### Modify the configuration file
+
+The configuration file downloaded by the script can be modified.
+
+### Execute docker-compose
 
 ```shell
-curl 
https://raw.githubusercontent.com/apache/incubator-shenyu/master/shenyu-dist/shenyu-docker-compose-dist/src/main/resources/install.sh
 | bash -s v2.4.2 pg
+cd shenyu-${VERSION}
+docker-compose -f ./shenyu-${VERSION}/docker-compose.yaml up -d
 ```

Reply via email to