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

Commit 4dd8931

Browse files
authored
Merge pull request #1091 from docker/dotEnv
Add support for .env file when loading compose files
2 parents 06a1e2d + daacc87 commit 4dd8931

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/cmd/compose/compose.go

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func (o *composeOptions) toProjectName() (string, error) {
6565
func (o *composeOptions) toProjectOptions() (*cli.ProjectOptions, error) {
6666
return cli.NewProjectOptions(o.ConfigPaths,
6767
cli.WithOsEnv,
68+
cli.WithDotEnv,
6869
cli.WithEnv(o.Environment),
6970
cli.WithWorkingDirectory(o.WorkingDir),
7071
cli.WithName(o.Name))

0 commit comments

Comments
 (0)