mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 23:56:25 +03:00
Fix healthcheck for database service (#1310)
As per https://github.com/symfony/recipes/pull/1307
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user