From 4bd7464b8cbd1c29f6373074b18fb1654eab7c5a Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Mon, 4 Jan 2021 09:56:09 +0100 Subject: [PATCH] Add support for .env file when loading compose files Signed-off-by: Nicolas De Loof --- cli/cmd/compose/compose.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/cmd/compose/compose.go b/cli/cmd/compose/compose.go index 32b314d42a..11705a461c 100644 --- a/cli/cmd/compose/compose.go +++ b/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))