feat: PostgreSQL 支持 v17.0 版本

This commit is contained in:
wanghe-fit2cloud 2024-09-30 16:08:00 +08:00
parent 801d17f23e
commit cfce949e5d
3 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,25 @@
additionalProperties:
formFields:
- default: user
envKey: PANEL_DB_ROOT_USER
labelEn: Username
labelZh: 用户名
random: true
required: true
rule: paramCommon
type: text
- default: password
envKey: PANEL_DB_ROOT_PASSWORD
labelEn: Password
labelZh: 用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: 5432
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number

View File

@ -0,0 +1,25 @@
services:
postgres:
container_name: ${CONTAINER_NAME}
image: postgres:17.0-alpine
restart: always
environment:
- POSTGRES_USER=${PANEL_DB_ROOT_USER}
- POSTGRES_PASSWORD=${PANEL_DB_ROOT_PASSWORD}
ports:
- ${PANEL_APP_PORT_HTTP}:5432
volumes:
- ./data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-h", "127.0.0.1", "-p", "5432", "-q", "-U", "${PANEL_DB_ROOT_USER}"]
start_period: 20s
interval: 30s
retries: 5
timeout: 5s
networks:
- 1panel-network
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

@ -118,6 +118,10 @@
"matchFileNames": ["apps/postgresql/16.*/*.yml"],
"allowedVersions": "/^16.*/"
},
{
"matchFileNames": ["apps/postgresql/17.*/*.yml"],
"allowedVersions": "/^17.*/"
},
{
"matchFileNames": ["apps/jumpserver/3.*/*.yml"],
"allowedVersions": "/^3.*/"