services:
  # External mode retains the service definition for reusable test/backup
  # tooling but excludes it from normal `up`; DATABASE_URL is then the only
  # application database destination.
  db:
    profiles: [container-database]

  migrate:
    depends_on:
      db:
        condition: service_healthy
        required: false
