mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2025-03-25 01:51:16 +08:00
feat: 增加 postgresql 的 healthcheck 功能 (#1375)
This commit is contained in:
parent
c7559e7159
commit
842bf341c8
0
apps/postgresql/16.2-alpine/data.yml
Executable file → Normal file
0
apps/postgresql/16.2-alpine/data.yml
Executable file → Normal file
@ -10,6 +10,12 @@ services:
|
|||||||
- ${PANEL_APP_PORT_HTTP}:5432
|
- ${PANEL_APP_PORT_HTTP}:5432
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/var/lib/postgresql/data
|
- ./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:
|
networks:
|
||||||
- 1panel-network
|
- 1panel-network
|
||||||
labels:
|
labels:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user