mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +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_USER: ${POSTGRES_USER:-app}",
|
||||
" healthcheck:",
|
||||
" test: [\"CMD\", \"pg_isready\"]",
|
||||
" test: [\"CMD\", \"pg_isready -U ${POSTGRES_USER:-app}\"]",
|
||||
" timeout: 5s",
|
||||
" retries: 5",
|
||||
" start_period: 60s",
|
||||
|
||||
Reference in New Issue
Block a user