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

zhangyonglun 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 8ab10fd  [DOC #339] Add deployment documentation for PostgreSql 
support in version 2.4.1. (#357)
8ab10fd is described below

commit 8ab10fd2c432723208280cd7c7b5dd075ca3c179
Author: Shawn Jim <[email protected]>
AuthorDate: Mon Nov 15 14:51:22 2021 +0800

    [DOC #339] Add deployment documentation for PostgreSql support in version 
2.4.1. (#357)
    
    * [DOC #339] Add deployment documentation for PostgreSql support in version 
2.4.1.
    
    * [DOC #339] Add deployment documentation for PostgreSql support in version 
2.4.1.
    
    * [DOC #339] Revert `doc\deployment\deployment-docker.md`.
    
    * [DOC #339] Revert `doc\deployment\deployment-docker.md`.
---
 versioned_docs/version-2.4.1/deployment/deployment-docker.md | 12 ++++++++++++
 versioned_docs/version-2.4.1/deployment/deployment-local.md  |  2 ++
 .../version-2.4.1/deployment/deployment-package.md           |  8 ++++++++
 3 files changed, 22 insertions(+)

diff --git a/versioned_docs/version-2.4.1/deployment/deployment-docker.md 
b/versioned_docs/version-2.4.1/deployment/deployment-docker.md
index 5613885..b765224 100644
--- a/versioned_docs/version-2.4.1/deployment/deployment-docker.md
+++ b/versioned_docs/version-2.4.1/deployment/deployment-docker.md
@@ -32,6 +32,18 @@ another way is to put the `application.yml` configuration in 
${your_work_dir}/co
 docker run -v ${your_work_dir}/conf:/opt/shenyu-admin/conf/ -v 
/${your_work_dir}/ext-lib:/opt/shenyu-admin/ext-lib -d -p 9095:9095 --net 
shenyu apache/shenyu-admin
 ```
 
+* use `PostgreSql` to store data, execute the following statement:
+
+```
+docker run -e "SPRING_PROFILES_ACTIVE=pg" -e 
"spring.datasource.url=jdbc:postgresql://${your_ip_port}/shenyu?useUnicode=true&characterEncoding=utf-8&useSSL=false"
 -e "spring.datasource.username=${your_username}" -e 
"spring.datasource.password=${your_password}" -d -p 9095:9095 --net shenyu 
apache/shenyu-admin
+```
+
+another way is to put the `application.yml` configuration in 
${your_work_dir}/conf, and then execute the following statement:
+
+```
+docker run -v ${your_work_dir}/conf:/opt/shenyu-admin/conf -d -p 9095:9095 
--net shenyu apache/shenyu-admin
+```
+
 ### Start Apache ShenYu Bootstrap
 
 ```
diff --git a/versioned_docs/version-2.4.1/deployment/deployment-local.md 
b/versioned_docs/version-2.4.1/deployment/deployment-local.md
index e8f9176..38fd532 100644
--- a/versioned_docs/version-2.4.1/deployment/deployment-local.md
+++ b/versioned_docs/version-2.4.1/deployment/deployment-local.md
@@ -29,6 +29,8 @@ This article introduces how to start the `Apache ShenYu` 
gateway in the local en
   * If you use `h2` to store, set the variable `--spring.profiles.active = h2`.
 
   * If you use `MySQL` for storage, modify the `mysql` configuration in 
`application.yaml`.
+    
+  * If you use `PostgreSql` for storage, modify the `pg` of 
`spring.profiles.active` configuration in `application.yaml`.
 
 * use the development tool to start 
`org.apache.shenyu.bootstrap.ShenyuBootstrapApplication`.
 
diff --git a/versioned_docs/version-2.4.1/deployment/deployment-package.md 
b/versioned_docs/version-2.4.1/deployment/deployment-package.md
index feb191e..ed9ef45 100644
--- a/versioned_docs/version-2.4.1/deployment/deployment-package.md
+++ b/versioned_docs/version-2.4.1/deployment/deployment-package.md
@@ -30,6 +30,14 @@ This article introduces the deployment of the `Apache 
ShenYu` gateway using the
 > linux: ./start.sh 
 ```
 
+* use `PostgreSql` to store data, go to the `/conf` directory, and  modify 
`spring.profiles.active` of the configuration in `application.yaml` to `pg`.
+
+```
+> windows: start.bat 
+
+> linux: ./start.sh 
+```
+
 ### Start Apache ShenYu Bootstrap
 
 * download `apache-shenyu-incubating-2.4.1-bootstrap-bin.tar.gz`

Reply via email to