1
0
Fork 0

feat(postgresql): add postgresql 18.0 support and update existing versions

- add new postgresql 18.0 and 18.0-alpine versions with complete configuration
- include data.yml files with form fields for data persistence, passwords, ports, users, and database names
- update existing postgresql versions: 16.9 to 16.10 and 17.5 to 17.6
This commit is contained in:
pooneyy 2025-11-02 01:37:46 +08:00
parent fa6ac99c68
commit 5aa6aab6ec
No known key found for this signature in database
8 changed files with 128 additions and 4 deletions

View File

@ -4,7 +4,7 @@ networks:
services:
postgresql:
image: postgres:16.9-alpine
image: postgres:16.10-alpine
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"

View File

@ -4,7 +4,7 @@ networks:
services:
postgresql:
image: postgres:16.9
image: postgres:16.10
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"

View File

@ -4,7 +4,7 @@ networks:
services:
postgresql:
image: postgres:17.5-alpine
image: postgres:17.6-alpine
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"

View File

@ -4,7 +4,7 @@ networks:
services:
postgresql:
image: postgres:17.5
image: postgres:17.6
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"

View File

@ -0,0 +1,40 @@
additionalProperties:
formFields:
- default: "./data"
edit: true
envKey: POSTGRES_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: ""
edit: false
envKey: POSTGRES_PASSWORD
labelZh: Postgres 密码 (首次生效)
labelEn: Postgres Password (First Time)
required: true
random: true
rule: paramComplexity
type: password
- default: 5432
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: Postgres 端口
labelEn: Postgres Port
required: true
rule: paramPort
type: number
- default: "postgres"
edit: false
envKey: POSTGRES_USER
labelZh: Postgres 用户(不建议改动)
labelEn: Postgres User
required: false
type: text
- default: "postgres"
edit: false
envKey: POSTGRES_DB
labelZh: Postgres 数据库名称(不建议改动)
labelEn: Postgres Database Name
required: false
type: text

View File

@ -0,0 +1,22 @@
networks:
1panel-network:
external: true
services:
postgresql:
image: postgres:18.0-alpine
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:5432
volumes:
- ${POSTGRES_ROOT_PATH}/data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-postgres}
POSTGRES_INITDB_ARGS: "--data-checksums"

View File

@ -0,0 +1,40 @@
additionalProperties:
formFields:
- default: "./data"
edit: true
envKey: POSTGRES_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: ""
edit: false
envKey: POSTGRES_PASSWORD
labelZh: Postgres 密码 (首次生效)
labelEn: Postgres Password (First Time)
required: true
random: true
rule: paramComplexity
type: password
- default: 5432
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: Postgres 端口
labelEn: Postgres Port
required: true
rule: paramPort
type: number
- default: "postgres"
edit: false
envKey: POSTGRES_USER
labelZh: Postgres 用户(不建议改动)
labelEn: Postgres User
required: false
type: text
- default: "postgres"
edit: false
envKey: POSTGRES_DB
labelZh: Postgres 数据库名称(不建议改动)
labelEn: Postgres Database Name
required: false
type: text

View File

@ -0,0 +1,22 @@
networks:
1panel-network:
external: true
services:
postgresql:
image: postgres:18.0
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:5432
volumes:
- ${POSTGRES_ROOT_PATH}/data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-postgres}
POSTGRES_INITDB_ARGS: "--data-checksums"