docker-compose-healthcheck icon indicating copy to clipboard operation
docker-compose-healthcheck copied to clipboard

Fix FATAL: role "root" does not exist

Open JorgeMadson opened this issue 5 months ago • 0 comments

This changes fix the error FATAL: role "root" does not exist. Why? You need to set the PGUSER environment variable, because psql and pg_isready are two different (although related) programs which have different logic of environment lookup (one looks for POSTGRES_USER, the other one – for PGUSER) Source: https://stackoverflow.com/a/77171779/6391134

JorgeMadson avatar Sep 18 '24 16:09 JorgeMadson