compose-spec / compose-go

Reference library for parsing and loading Compose YAML files
https://compose-spec.io
Apache License 2.0
355 stars 112 forks source link

load secrets/configs from environment while parsing compose model #655

Closed ndeloof closed 3 months ago

ndeloof commented 3 months ago

As we load compose model with environment, resolve secrets and config values based on declared environment value. This allows a nested model loading (using include) to resolve such values based on configured env_file, not just top-level environment. when marshaling model to yaml/json resolved content is hidden if it was set by environment, to keep definition consistency

closes https://github.com/docker/compose/issues/11952