From b36cc2e2b08a5c242fcced4fc828273f87d15134 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 3 Dec 2024 11:48:49 +0100 Subject: [PATCH] add healthcheck for postgres Signed-off-by: Simon L. --- php/containers.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/php/containers.json b/php/containers.json index 1cea938f..b416a3dd 100644 --- a/php/containers.json +++ b/php/containers.json @@ -89,6 +89,14 @@ "image": "nextcloud/aio-postgresql", "user": "999", "init": true, + "healthcheck": { + "start_period": "0s", + "test": "/healthcheck.sh", + "interval": "30s", + "timeout": "30s", + "start_interval": "5s", + "retries": 3 + }, "expose": [ "5432" ],