Docker Compose depends_on condition not working: why your container starts before Postgres is ready and how to fix it
The container that calls itself “waiting for the database” is not waiting for the database — depends_on with a healthcheck condition only orders container creation and start, and if your service still crashes on boot, the healthcheck is either missing, misconfigured, or being ignored because you are on a Compose version that never supported the…