From c511f8c11cf807621fa2f8fd52bfd81054fb38af Mon Sep 17 00:00:00 2001 From: Gabriel Penide Calvo <57136415+gabrielpenide@users.noreply.github.com> Date: Wed, 8 May 2024 13:28:51 +0200 Subject: [PATCH] Fix healthcheck for database service (#1310) 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",