Healthchecks are a love letter to future you
docker ps says a container is running. It does not say the app inside answered a
request this decade. A healthcheck closes that gap, and a good one exercises the
real path — hit an endpoint that touches the database, not just /.
Then depends_on: condition: service_healthy turns startup ordering from hope
into a guarantee.