From 06b3536d9e1fbc40d5e9e8ba7cfd9532c8a331a8 Mon Sep 17 00:00:00 2001 From: DrWarpMan <36279265+DrWarpMan@users.noreply.github.com> Date: Fri, 19 Apr 2024 00:18:54 +0200 Subject: [PATCH] fix healthcheck postgres user By default, root user is used to connect to the database. If the database does not have a "root" role, the following error is logged everytime the health check happens: 'FATAL: role "root" does not exist', which spams the log. --- doctrine/doctrine-bundle/2.12/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doctrine/doctrine-bundle/2.12/manifest.json b/doctrine/doctrine-bundle/2.12/manifest.json index 0889946e3..d7f4f04af 100644 --- a/doctrine/doctrine-bundle/2.12/manifest.json +++ b/doctrine/doctrine-bundle/2.12/manifest.json @@ -29,7 +29,7 @@ " POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}", " POSTGRES_USER: ${POSTGRES_USER:-app}", " healthcheck:", - " test: [\"CMD\", \"pg_isready\"]", + " test: [\"CMD\", \"pg_isready -U ${POSTGRES_USER:-app}\"]", " timeout: 5s", " retries: 5", " start_period: 60s",