mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-07 21:59:15 +00:00
fix: compose variables are now interpolated from .env file (fixes #144)
This commit is contained in:
1 parent
dc569175ef
commit
40862df038
2 files changed
+192
-1
No files matched your search
@@ -16,7 +16,10 @@ func LoadProject(ctx context.Context, paths []string, opts ...composecli.Project
|
||||
composecli.WithName(FakeProjectName),
|
||||
// First apply os.Environment, always wins.
|
||||
composecli.WithOsEnv,
|
||||
// Read dot env file to populate project environment.
|
||||
// Set the local .env file to be loaded by WithDotEnv. COMPOSE_DISABLE_ENV_FILE can disable it.
|
||||
composecli.WithEnvFiles(),
|
||||
// Read environment variables from .env files set by WithEnvFiles (.env by default) to make available
|
||||
// for interpolation.
|
||||
composecli.WithDotEnv,
|
||||
// Get compose file path set by COMPOSE_FILE.
|
||||
composecli.WithConfigFileEnv,
|
||||
|
||||
Reference in new issue
Block a user