Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions apps/postgresql/18.0-alpine/data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
additionalProperties:
formFields:
- default: user
envKey: PANEL_DB_ROOT_USER
labelEn: Username
labelZh: 用户名
label:
en: Username
ja: ユーザー名
ms: Nama pengguna
pt-br: Nome de usuário
ru: Имя пользователя
ko: 사용자 이름
zh-hant: 用戶名
zh: 用户名
random: true
required: true
rule: paramCommon
type: text
- default: password
envKey: PANEL_DB_ROOT_PASSWORD
labelEn: Password
labelZh: 密码
label:
en: Password
ja: パスワード
ms: Kata laluan
pt-br: Senha
ru: Пароль
ko: 비밀번호
zh-hant: 密碼
zh: 密码
random: true
required: true
type: password
- default: 5432
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
label:
en: Port
ja: ポート
ms: Port
pt-br: Porta
ru: Порт
ko: 포트
zh-Hant: 埠
zh: 端口
required: true
rule: paramPort
type: number
25 changes: 25 additions & 0 deletions apps/postgresql/18.0-alpine/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
services:
postgres:
container_name: ${CONTAINER_NAME}
image: postgres:18.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
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