waku-org / nwaku-compose

Deployment docker-compose files to deploy an nwaku node
13 stars 22 forks source link

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

Closed Ivansete-status closed 8 months ago

Ivansete-status commented 8 months ago

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

gabrielmer commented 8 months ago

Just curious - how does changing the username and db names to "postgres" fixes this error message?

Ivansete-status commented 8 months ago

Just curious - how does changing the username and db names to "postgres" fixes this error message?

ah yes, the original fix is to indicate an existing Postgres user. If no user is given, then it gets the same user that is invoking the command, in this case root (used by Docker.)

Then, we also need to specify the database name in the command.