docker-compose.yml: pass user and database name when calling pg_isready

The postgres container, within the docker-compose file, starts
an internal healthcheck. In this commit we are avoiding the
following message to appear:
<< FATAL:  role "root" does not exist >>
This commit is contained in:
Ivan Folgueira Bande 2024-02-12 10:59:46 +01:00
parent 4611f1308a
commit c89d931a85
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7

View File

@ -122,7 +122,7 @@ services:
ports: []
# - 127.0.0.1:5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -d db_prod"]
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 30s
timeout: 60s
retries: 5