Просмотр исходного кода

Add support for .env file when loading compose files

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 5 лет назад
Родитель
Сommit
daacc872c1
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      cli/cmd/compose/compose.go

+ 1 - 0
cli/cmd/compose/compose.go

@@ -65,6 +65,7 @@ func (o *composeOptions) toProjectName() (string, error) {
 func (o *composeOptions) toProjectOptions() (*cli.ProjectOptions, error) {
 	return cli.NewProjectOptions(o.ConfigPaths,
 		cli.WithOsEnv,
+		cli.WithDotEnv,
 		cli.WithEnv(o.Environment),
 		cli.WithWorkingDirectory(o.WorkingDir),
 		cli.WithName(o.Name))