$ ./guess_the_languageDevOps
DevOps · hard · #229

What does depends_on guarantee here by default?

services:
  web:
    depends_on:
      - db
  1. db is rebuilt whenever web is
  2. db's container starts before web
  3. web waits until db accepts connections
  4. 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 ▸