mirror of
https://github.com/symfony/recipes.git
synced 2026-09-18 02:26:31 +03:00
fix healthcheck postgres user
By default, root user is used to connect to the database. If the database does not have a "root" role, the following error is logged everytime the health check happens: 'FATAL: role "root" does not exist', which spams the log.
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}",
|
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}",
|
||||||
" POSTGRES_USER: ${POSTGRES_USER:-app}",
|
" POSTGRES_USER: ${POSTGRES_USER:-app}",
|
||||||
" healthcheck:",
|
" healthcheck:",
|
||||||
" test: [\"CMD\", \"pg_isready\"]",
|
" test: [\"CMD\", \"pg_isready -U ${POSTGRES_USER:-app}\"]",
|
||||||
" timeout: 5s",
|
" timeout: 5s",
|
||||||
" retries: 5",
|
" retries: 5",
|
||||||
" start_period: 60s",
|
" start_period: 60s",
|
||||||
|
|||||||
Reference in New Issue
Block a user