Postgres healthcheck in Docker Compose
The pg_isready healthcheck block for the official postgres image, why a socket probe lies on first boot, the TCP fix, and depends_on with service_healthy.
Filtering by topic #healthcheck · clear
The pg_isready healthcheck block for the official postgres image, why a socket probe lies on first boot, the TCP fix, and depends_on with service_healthy.
How Docker Compose healthchecks are evaluated, why depends_on alone waits for nothing useful, and how to write readiness checks for Postgres and your app.