mirror of https://github.com/docker/compose.git
include services declared by `links` as implicit dependencies
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
db698562a9
commit
e766352d81
|
@ -173,6 +173,10 @@ func prepareServicesDependsOn(p *types.Project) error {
|
|||
dependencies = append(dependencies, spec[0])
|
||||
}
|
||||
|
||||
for _, link := range service.Links {
|
||||
dependencies = append(dependencies, strings.Split(link, ":")[0])
|
||||
}
|
||||
|
||||
if len(dependencies) == 0 {
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue