From 842bf341c8e94424fcbb071ce49df4c115fa309e Mon Sep 17 00:00:00 2001 From: mia0x75 Date: Thu, 9 May 2024 11:11:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=20postgresql=20?= =?UTF-8?q?=E7=9A=84=20healthcheck=20=E5=8A=9F=E8=83=BD=20(#1375)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/postgresql/16.2-alpine/data.yml | 0 apps/postgresql/16.2-alpine/docker-compose.yml | 6 ++++++ 2 files changed, 6 insertions(+) mode change 100755 => 100644 apps/postgresql/16.2-alpine/data.yml diff --git a/apps/postgresql/16.2-alpine/data.yml b/apps/postgresql/16.2-alpine/data.yml old mode 100755 new mode 100644 diff --git a/apps/postgresql/16.2-alpine/docker-compose.yml b/apps/postgresql/16.2-alpine/docker-compose.yml index c2ad0e19..6d65e3a8 100644 --- a/apps/postgresql/16.2-alpine/docker-compose.yml +++ b/apps/postgresql/16.2-alpine/docker-compose.yml @@ -10,6 +10,12 @@ services: - ${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: