docker-compose-healthcheck
docker-compose-healthcheck copied to clipboard
Fix FATAL: role "root" does not exist
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