Browse Source

os ENV has precedence over env file

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 4 years ago
parent
commit
8525ac44ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cli/cmd/compose/compose.go

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

@@ -83,9 +83,9 @@ func (o *projectOptions) toProject(services []string) (*types.Project, error) {
 
 func (o *projectOptions) toProjectOptions() (*cli.ProjectOptions, error) {
 	return cli.NewProjectOptions(o.ConfigPaths,
-		cli.WithOsEnv,
 		cli.WithEnvFile(o.EnvFile),
 		cli.WithDotEnv,
+		cli.WithOsEnv,
 		cli.WithWorkingDirectory(o.WorkingDir),
 		cli.WithName(o.ProjectName))
 }