Skip to content

Commit c511f8c

Browse files
Fix healthcheck for database service (#1310)
As per #1307
1 parent 8cba886 commit c511f8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doctrine/doctrine-bundle/2.12/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}",
3030
" POSTGRES_USER: ${POSTGRES_USER:-app}",
3131
" healthcheck:",
32-
" test: [\"CMD\", \"pg_isready -U ${POSTGRES_USER:-app}\"]",
32+
" test: [\"CMD\", \"pg_isready\", \"-d\", \"${POSTGRES_DB:-app}\", \"-U\", \"${POSTGRES_USER:-app}\"]",
3333
" timeout: 5s",
3434
" retries: 5",
3535
" start_period: 60s",

0 commit comments

Comments
 (0)