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:
2024-04-03 22:08:01 +02:00
parent dc47e73b4b
commit 4ded4d4e09

View File

@@ -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,