docker compose depends_on does not wait for your database: fix "connection refused" on startup with healthchecks
You run docker compose up, the logs scroll, and a second later your API container is dead: api-1 | Error: connect ECONNREFUSED 172.18.0.2:5432 api-1 | psql: error: could not connect to server: Conne










