From 54a7a0e7836c89cd2c6cafc3286a7cf495f45fe8 Mon Sep 17 00:00:00 2001 From: Micha Date: Fri, 29 May 2026 15:09:50 +0200 Subject: [PATCH] Add healthcheck to postgresql17 (pg_isready) Tier-1 health visibility for shared Postgres cluster. pg_isready against the admin DB; 30s interval, 30s start_period. Co-Authored-By: Claude Opus 4.7 --- infra/postgresql17/docker-compose.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/infra/postgresql17/docker-compose.yml b/infra/postgresql17/docker-compose.yml index 053572b..87875f1 100644 --- a/infra/postgresql17/docker-compose.yml +++ b/infra/postgresql17/docker-compose.yml @@ -21,6 +21,13 @@ services: security_opt: - no-new-privileges:true + healthcheck: + test: ["CMD-SHELL", "pg_isready -U mailarchiver -d mailarchiver"] + interval: 30s + timeout: 5s + retries: 5 + start_period: 30s + networks: backend_net: external: true