You've already forked postgres
mirror of
https://github.com/docker-library/postgres.git
synced 2025-11-17 13:02:40 +03:00
Healthchecks that used `pg_isready -p 5432` were incorrectly flagging the container as being healthy during initialization phase since healthchecks are being run inside the container itself, so `listen_addresses='localhost'` was not enough. Setting `listen_addresses=''` forces the server to only listen on the unix socket so no ports are open that might incorrectly interfeer with the healthchecks.