docker: Add depends_on long syntax (#1891)

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
This commit is contained in:
Léni Marvaud 2022-11-01 04:23:53 +01:00 committed by GitHub
parent a5abcaea10
commit 287295eae1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -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