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:
formFields:
- default: ""
envKey: PANEL_DB_HOST
key: mysql
- default: mysql
envKey: PANEL_DB_TYPE
labelEn: Database Service
labelZh: 数据库服务
required: true
type: service
type: apps
child:
default: ""
envKey: PANEL_DB_HOST
required: true
type: service
values:
- label: MySQL
value: mysql
- label: PostgreSQL
value: postgres
- default: gitea
envKey: PANEL_DB_NAME
labelEn: Database

View File

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

View File

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