mirror of
https://github.com/docker/compose.git
synced 2026-10-21 19:33:28 +00: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
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue