From 03795019b4e1368ef06f1bafcc83bf886decc3ce Mon Sep 17 00:00:00 2001 From: Gabriel Penide Calvo <57136415+gabrielpenide@users.noreply.github.com> Date: Mon, 29 Apr 2024 15:44:56 +0200 Subject: [PATCH] Fix healthcheck for database service As per https://github.com/symfony/recipes/pull/1307 --- 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 d7f4f04af..3966bd5f0 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 -U ${POSTGRES_USER:-app}\"]", + " test: [\"CMD\", \"pg_isready\", \"-d\", \"${POSTGRES_DB:-app}\", \"-U\", \"${POSTGRES_USER:-app}\"]", " timeout: 5s", " retries: 5", " start_period: 60s",