Merge pull request #1328 from docker/env_vs_dot_env

os ENV has precedence over env file
This commit is contained in:
Nicolas De loof 2021-02-22 10:01:40 +01:00 committed by GitHub
commit 134b55b512
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))
}