Skip to content

Commit

Permalink
fix healthcheck postgres user
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DrWarpMan committed Apr 18, 2024
1 parent 762b0a4 commit 06b3536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doctrine/doctrine-bundle/2.12/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 06b3536

Please sign in to comment.