feat: halo 和 gitea 增加 postgres 数据库支持 (#776)

This commit is contained in:
zhengkunwang 2024-01-03 11:04:01 +08:00 committed by GitHub
parent 29d3afe2e1
commit 48e65c8ef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 6 deletions

View File

@ -1,12 +1,21 @@
additionalProperties: additionalProperties:
formFields: formFields:
- default: "" - default: mysql
envKey: PANEL_DB_HOST envKey: PANEL_DB_TYPE
key: mysql
labelEn: Database Service labelEn: Database Service
labelZh: 数据库服务 labelZh: 数据库服务
required: true required: true
type: apps
child:
default: ""
envKey: PANEL_DB_HOST
required: true
type: service type: service
values:
- label: MySQL
value: mysql
- label: PostgreSQL
value: postgres
- default: gitea - default: gitea
envKey: PANEL_DB_NAME envKey: PANEL_DB_NAME
labelEn: Database labelEn: Database

View File

@ -6,8 +6,8 @@ services:
environment: environment:
- USER_UID=1000 - USER_UID=1000
- USER_GID=1000 - USER_GID=1000
- GITEA__database__DB_TYPE=mysql - GITEA__database__DB_TYPE=${PANEL_DB_TYPE}
- GITEA__database__HOST=${PANEL_DB_HOST}:3306 - GITEA__database__HOST=${PANEL_DB_HOST}:${PANEL_DB_PORT}
- GITEA__database__NAME=${PANEL_DB_NAME} - GITEA__database__NAME=${PANEL_DB_NAME}
- GITEA__database__USER=${PANEL_DB_USER} - GITEA__database__USER=${PANEL_DB_USER}
- GITEA__database__PASSWD=${PANEL_DB_USER_PASSWORD} - GITEA__database__PASSWD=${PANEL_DB_USER_PASSWORD}

View File

@ -16,6 +16,8 @@ additionalProperties:
value: mysql value: mysql
- label: MariaDB - label: MariaDB
value: mariadb value: mariadb
- label: PostgreSQL
value: postgresql
- default: halo - default: halo
envKey: PANEL_DB_NAME envKey: PANEL_DB_NAME
labelEn: Database labelEn: Database