Fix healthcheck for database service (#1310)

As per https://github.com/symfony/recipes/pull/1307
This commit is contained in:
Gabriel Penide Calvo
2024-05-08 13:28:51 +02:00
committed by GitHub
parent 8cba886fb7
commit c511f8c11c
+1 -1
View File
@@ -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",