diff --git a/pkg/compose/create.go b/pkg/compose/create.go index 74a2184ac..a0b74a0e5 100644 --- a/pkg/compose/create.go +++ b/pkg/compose/create.go @@ -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, }