From 671b9345421b2d76a7b3cc0e7d2ff12af8eafe25 Mon Sep 17 00:00:00 2001 From: Dlimeng <77954309@qq.com> Date: Thu, 14 Sep 2023 23:50:11 +0800 Subject: [PATCH] fix docker images --- docs/development/docker-images.md | 9 +++++++++ .../current/development/docker-images.md | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/docs/development/docker-images.md b/docs/development/docker-images.md index 6866f096..781cbf8a 100644 --- a/docs/development/docker-images.md +++ b/docs/development/docker-images.md @@ -20,6 +20,12 @@ sidebar_position: 2 ```shell script tar -zxvf solidui-x.x.x-bin.tar.gz cd solidui-x.x.x-bin/entrance-server + +# changing the JDBC MySQL IP under the same network +vi solidui-x.x.x-bin/entrance-server/conf/application.yaml +jdbc:mysql://mysql:3306/solidui?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true + +# Building image docker build -f ./docker/Dockerfile -t solidui-entrance:x.x.x . ``` @@ -31,8 +37,11 @@ tar -zxvf solidui-x.x.x-bin.tar.gz cd solidui-x.x.x-bin # update .env vi soliduimodelui/.env +DB_HOST=mysql SNAKEMQ_LISTENER=0.0.0.0 SNAKEMQ_CONNECTOR=soliduimodelui + +# Building image docker build -f ./soliduimodelui/docker/Dockerfile -t soliduimodelui:x.x.x . ``` diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/development/docker-images.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/development/docker-images.md index 79ae5888..387a343f 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/development/docker-images.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/development/docker-images.md @@ -20,6 +20,12 @@ sidebar_position: 2 ```shell script tar -zxvf solidui-x.x.x-bin.tar.gz cd solidui-x.x.x-bin/entrance-server + +# 同一个网络下修改jdbc mysql ip +vi solidui-x.x.x-bin/entrance-server/conf/application.yaml +jdbc:mysql://mysql:3306/solidui?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true + +# Building image docker build -f ./docker/Dockerfile -t solidui-entrance:x.x.x . ``` @@ -30,6 +36,7 @@ tar -zxvf solidui-x.x.x-bin.tar.gz cd solidui-x.x.x-bin # 修改.env配置文件 vi soliduimodelui/.env +DB_HOST=mysql SNAKEMQ_LISTENER=0.0.0.0 SNAKEMQ_CONNECTOR=soliduimodelui