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:
DrWarpMan
2024-04-19 00:18:54 +02:00
committed by GitHub
parent 762b0a47ab
commit 06b3536d9e
+1 -1
View File
@@ -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",