diff --git a/docker-compose.md b/docker-compose.md index 585e60197..210fe1cc3 100644 --- a/docker-compose.md +++ b/docker-compose.md @@ -133,6 +133,16 @@ web: - db ``` +```yaml + # make sure `db` is healty before starting + # and db-init completed without failure + depends_on: + db: + condition: service_healthy + db-init: + condition: service_completed_successfully +``` + ### Other options ```yaml