mirror of
https://github.com/docker/compose.git
synced 2025-07-23 13:45:00 +02:00
Add support for .env file when loading compose files
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
06a1e2d39f
commit
daacc872c1
@ -65,6 +65,7 @@ func (o *composeOptions) toProjectName() (string, error) {
|
|||||||
func (o *composeOptions) toProjectOptions() (*cli.ProjectOptions, error) {
|
func (o *composeOptions) toProjectOptions() (*cli.ProjectOptions, error) {
|
||||||
return cli.NewProjectOptions(o.ConfigPaths,
|
return cli.NewProjectOptions(o.ConfigPaths,
|
||||||
cli.WithOsEnv,
|
cli.WithOsEnv,
|
||||||
|
cli.WithDotEnv,
|
||||||
cli.WithEnv(o.Environment),
|
cli.WithEnv(o.Environment),
|
||||||
cli.WithWorkingDirectory(o.WorkingDir),
|
cli.WithWorkingDirectory(o.WorkingDir),
|
||||||
cli.WithName(o.Name))
|
cli.WithName(o.Name))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user