Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1091 from docker/dotEnv
Browse files Browse the repository at this point in the history
Add support for .env file when loading compose files
  • Loading branch information
gtardif committed Jan 4, 2021
2 parents 06a1e2d + daacc87 commit 4dd8931
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/cmd/compose/compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4dd8931

Please sign in to comment.