-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add description of the docker environment variable (#137)
为部署文档提供 Docker 环境变量的解释。 /kind documentation ```release-note None ```
- Loading branch information
Showing
6 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
| 变量名 | 描述 | | ||
| ---------------------------------------------- | -------------------------------------------------------------------------------- | | ||
| `SPRING_R2DBC_URL` | 数据库连接地址,详细可查阅下方的 `数据库配置` | | ||
| `SPRING_R2DBC_USERNAME` | 数据库用户名 | | ||
| `SPRING_R2DBC_PASSWORD` | 数据库密码 | | ||
| `SPRING_SQL_INIT_PLATFORM` | 数据库平台名称,支持 `postgresql`、`mysql`、`h2`,需要与 `SPRING_R2DBC_URL` 对应 | | ||
| `HALO_EXTERNAL_URL` | 外部访问链接,如果需要再公网访问,需要配置为实际访问地址 | | ||
| `HALO_SECURITY_INITIALIZER_SUPERADMINUSERNAME` | 初始超级管理员用户名 | | ||
| `HALO_SECURITY_INITIALIZER_SUPERADMINPASSWORD` | 初始超级管理员密码 | | ||
|
||
数据库配置: | ||
|
||
| 链接方式 | 链接地址格式 | `SPRING_SQL_INIT_PLATFORM` | | ||
| ----------- | ---------------------------------------------------------------------------------- | -------------------------- | | ||
| PostgreSQL | `r2dbc:pool:postgresql://{HOST}:{PORT}/{DATABASE}` | postgresql | | ||
| MySQL | `r2dbc:pool:mysql://{HOST}:{PORT}/{DATABASE}` | mysql | | ||
| H2 Database | `r2dbc:h2:file:///${halo.work-dir}/db/halo-next?MODE=MySQL&DB_CLOSE_ON_EXIT=FALSE` | h2 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
versioned_docs/version-2.0/getting-started/install/slots/docker-env.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
| 变量名 | 描述 | | ||
| ---------------------------------------------- | -------------------------------------------------------------------------------- | | ||
| `SPRING_R2DBC_URL` | 数据库连接地址,详细可查阅下方的 `数据库配置` | | ||
| `SPRING_R2DBC_USERNAME` | 数据库用户名 | | ||
| `SPRING_R2DBC_PASSWORD` | 数据库密码 | | ||
| `SPRING_SQL_INIT_PLATFORM` | 数据库平台名称,支持 `postgresql`、`mysql`、`h2`,需要与 `SPRING_R2DBC_URL` 对应 | | ||
| `HALO_EXTERNAL_URL` | 外部访问链接,如果需要再公网访问,需要配置为实际访问地址 | | ||
| `HALO_SECURITY_INITIALIZER_SUPERADMINUSERNAME` | 初始超级管理员用户名 | | ||
| `HALO_SECURITY_INITIALIZER_SUPERADMINPASSWORD` | 初始超级管理员密码 | | ||
|
||
数据库配置: | ||
|
||
| 链接方式 | 链接地址格式 | `SPRING_SQL_INIT_PLATFORM` | | ||
| ----------- | ---------------------------------------------------------------------------------- | -------------------------- | | ||
| PostgreSQL | `r2dbc:pool:postgresql://{HOST}:{PORT}/{DATABASE}` | postgresql | | ||
| MySQL | `r2dbc:pool:mysql://{HOST}:{PORT}/{DATABASE}` | mysql | | ||
| H2 Database | `r2dbc:h2:file:///${halo.work-dir}/db/halo-next?MODE=MySQL&DB_CLOSE_ON_EXIT=FALSE` | h2 | |
dcb7a89
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
halo-docs – ./
halo-docs-git-main-halo-dev.vercel.app
halo-docs.vercel.app
halo-docs-halo-dev.vercel.app