What does depends_on guarantee here by default?
services:
web:
depends_on:
- db
- db is rebuilt whenever web is
- db's container starts before web
- web waits until db accepts connections
- web restarts whenever db does
Plain depends_on only orders container start-up; waiting for readiness needs condition: service_healthy with a healthcheck.
Play DevOps ▸