Skip to content

Commit

Permalink
修改部署方式
Browse files Browse the repository at this point in the history
  • Loading branch information
Gygkimo95 committed Oct 26, 2023
1 parent adf88b1 commit 2a84fea
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
13 changes: 8 additions & 5 deletions docs/deploy-manual/Docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ title: Docker部署
docker run -d -it \
--name sqle-server \
-p 10000:10000 \
-p 10001:10001 \
-e MYSQL_HOST="10.10.10.10" \
-e MYSQL_PORT=3306 \
-e MYSQL_USER="username" \
-e MYSQL_PASSWORD="password" \
-e MYSQL_SCHEMA="sqle" \
-e MYSQL_USER="root" \
-e MYSQL_PASSWORD="123456" \
-e MYSQL_DMS_SCHEMA="dms" \
-e MYSQL_SQLE_SCHEMA="sqle" \
actiontech/sqle-ce:latest
```

Expand All @@ -28,7 +30,8 @@ actiontech/sqle-ce:latest
|MYSQL_PORT| 数据库端口|
|MYSQL_USER| 数据库用户|
|MYSQL_PASSWORD| 数据库密码|
|MYSQL_SCHEMA| SQLE 服务使用的指定的 schema|
|MYSQL_DMS_SCHEMA| SQLE 服务使用的指定的 schema|
|MYSQL_SQLE_SCHEMA| DMS服务使用的指定的 schema|
|DEBUG| 是否输出 debug 日志,默认为false|
|AUTO_MIGRATE_TABLE| 是否自动创建表格和初始化数据,默认为true|

Expand All @@ -37,5 +40,5 @@ actiontech/sqle-ce:latest
使用 docker 命令运行容器需要提前准备 MySQL 服务并且创建对应的数据库 schema,创建数据库的SQL可参考:[RPM 部署](./rpm.md)
:::
:::tip
如果 SQLE 容器启动失败可以使用 docker logs sqle-server 查看启用日志,其中 sqle-server是容器名称
如果 SQLE 容器启动失败可以使用`docker logs sqle-server`查看启用日志,其中`sqle-server`是容器名称
:::
5 changes: 4 additions & 1 deletion docs/deploy-manual/DockerCompose.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ title: Docker Compose 部署
下载地址:[init](https://github.com/actiontech/sqle-ee/tree/release-3.2310.x/docker-images/sqle/init)

## 使用方法
将 docker-compose.yaml 文件和init 文件夹下载到本地目录,并进入目录内,通过环境变量SQLE_IMAGE指定不同版本的 SQLE 镜像,默认是 latest。
将 docker-compose.yaml 文件和init 文件夹下载到本地目录,并进入目录内,通过环境变量SQLE_IMAGE指定不同版本的 SQLE 镜像,默认是 latest
```
SQLE_IMAGE=actiontech/sqle-ce:latest docker-compose up -d
```
4 changes: 2 additions & 2 deletions docs/deploy-manual/rpm.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ rpm -ivh /path/to/sqle-ce-${version}.qa.el7.x86_64.rpm --prefix=/opt/sqle
## 创建数据库
准备一台 MySQL5.7 作为 SQLE 的后端存储数据库。执行下面命令创建 SQLE 需要的 schema:
```sql
CREATE DATABASE IF NOT EXISTS sqle default character set utf8mb4 collate utf8mb4_unicode_ci
CREATE DATABASE IF NOT EXISTS dms default character set utf8mb4 collate utf8mb4_unicode_ci
CREATE DATABASE IF NOT EXISTS sqle default character set utf8mb4 collate utf8mb4_unicode_ci;
CREATE DATABASE IF NOT EXISTS dms default character set utf8mb4 collate utf8mb4_unicode_ci;
```
:::tip
创建好的 Schema 将在下面修改SQLE配置时使用到。
Expand Down
1 change: 1 addition & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const sidebars = {
"deploy-manual/config",
"deploy-manual/source",
"deploy-manual/rpm",
"deploy-manual/Docker",
"deploy-manual/DockerCompose",
],
},
Expand Down

0 comments on commit 2a84fea

Please sign in to comment.