compose-go icon indicating copy to clipboard operation
compose-go copied to clipboard

Reference library for parsing and loading Compose YAML files

Results 62 compose-go issues
Sort by recently updated
recently updated
newest added

The issue is that all relative volume paths are resolved to the location of the first given config file instead of the config file they are specified in. It would...

Related to docker/compose#10360 but I think it makes more sense here. To make using remote docker compose config files more convenient it should be possible for the user to specify...

Converting ```yaml services: my-service: ports: - '20-21:20-21/tcp' - '40000-40009:40000-40009/tcp' ``` to ```yaml services: my-service: ports: - target: '20-21' published: '20-21' protocol: 'tcp' - target: '40000-40009' published: '40000-40009' protocol: 'tcp' ```...

When building images with Compose (i.e. `docker compose build`), you can get warnings in the output like: ``` WARNING: The "FOO" variable is not set. Defaulting to a blank string....

enhancement

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...

environment `FOO` with no value nor equal sign means "propagate value from user's environment, or unset variable" So, as we resolve environment, empty value with no matching entry in user's...

In #589, the normalisation logic strips off any environment variables that does not have a value in config, however, i my use case, I am still interested in any empty...

interpolation is ran **after** merge, so that a required missing variable, which is actually overridden, won't produce an error. This is an alternative implementation based on https://github.com/compose-spec/compose-go/pull/644: This PR always...

The default value of a variable cannot contain a new line (`\n`) character because `.*` doesn't match those. I.e. if you have this in your `.env` file: ```dotenv FOO="${BAR:-multi line}"...

**What this PR does / why we need it**: Changed interpolation order, it used to interpolate for each config file separately, but now it interpolates after merge. To be honest,...