mirror of
https://github.com/docker/compose.git
synced 2026-08-04 14:47:40 +00:00
exclude provider services from the list of dependencies that Compose should wait for
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
parent
8e57362a0f
commit
c9ebfad78e
1 changed files with 3 additions and 0 deletions
|
|
@ -563,6 +563,9 @@ func shouldWaitForDependency(serviceName string, dependencyConfig types.ServiceD
|
|||
} else if service.GetScale() == 0 {
|
||||
// don't wait for the dependency which configured to have 0 containers running
|
||||
return false, nil
|
||||
} else if service.Provider != nil {
|
||||
// don't wait for provider services
|
||||
return false, nil
|
||||
}
|
||||
return true, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue