mirror of
https://github.com/docker/compose.git
synced 2026-06-29 20:56:07 +00:00
Don't overwrite existing dependency condition
(when service has `volumes_from` another service with dependency condition) Signed-off-by: Laura Brehm <laurabrehm@hey.com>
This commit is contained in:
parent
43c444e890
commit
b564cc5a17
1 changed files with 2 additions and 1 deletions
|
|
@ -125,7 +125,8 @@ func prepareVolumes(p *types.Project) error {
|
|||
p.Services[i].DependsOn = make(types.DependsOnConfig, len(dependServices))
|
||||
}
|
||||
for _, service := range p.Services {
|
||||
if utils.StringContains(dependServices, service.Name) {
|
||||
if utils.StringContains(dependServices, service.Name) &&
|
||||
p.Services[i].DependsOn[service.Name].Condition == "" {
|
||||
p.Services[i].DependsOn[service.Name] = types.ServiceDependency{
|
||||
Condition: types.ServiceConditionStarted,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue