Set the compose file list using overrides
This is a hack to force the compose package to read all files provided with the -c flag.
This commit is contained in:
@@ -11,6 +11,10 @@ func Parse(profiles []string, dockerComposeFile ...string) (*types.Project, erro
|
||||
|
||||
cli.DefaultOverrideFileNames = append(cli.DefaultOverrideFileNames, "compose.katenary.yaml")
|
||||
|
||||
if len(dockerComposeFile) == 0 {
|
||||
cli.DefaultOverrideFileNames = append(cli.DefaultOverrideFileNames, dockerComposeFile...)
|
||||
}
|
||||
|
||||
options, err := cli.NewProjectOptions(nil,
|
||||
cli.WithProfiles(profiles),
|
||||
cli.WithDefaultConfigPath,
|
||||
|
Reference in New Issue
Block a user