mirror of
https://github.com/docker/compose.git
synced 2025-07-05 21:04:26 +02:00
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])
|
dependencies = append(dependencies, spec[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for _, link := range service.Links {
|
||||||
|
dependencies = append(dependencies, strings.Split(link, ":")[0])
|
||||||
|
}
|
||||||
|
|
||||||
if len(dependencies) == 0 {
|
if len(dependencies) == 0 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user