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

See https://github.com/compose-spec/compose-go/blob/master/types/types.go#L790-L796 When used with `yaml.Marshal` and `"gopkg.in/yaml.v3"`, this causes an infinite loop. To reproduce: ```go yaml.Marshal(&types.UlimitsConfig{Soft: 123}) ```

Currently, interpolation in label names only works when using the array of strings syntax, i.e. this works: ``` ... labels: - "traefik.http.services.${COMPOSE_PROJECT_NAME}.loadbalancer.server.port=8080" ``` But this doesn't: ``` ... labels: traefik.http.services.${COMPOSE_PROJECT_NAME}.loadbalancer.server.port:...

https://github.com/compose-spec/compose-spec/pull/206 introduced a top-level project name property to the compose file spec. https://github.com/compose-spec/compose-go/pull/231 implemented support for this property, but I believe the implementation does not yet comply with the second...

Given system variable SYS_VAR=the_value when set: and an .env file: Some__env__var=${SYS_VAR:-fallback} Using docker-compose v1.29.2, this results in either: Some__env__var=the_value when SYS_VAR has a value or Some__env__var=fallback when SYS_VAR is not...

`loader.ParseYAML` (and correspondingly `loader.Load`) use `yaml.Unmarshal`, which performs non-strict YAML unmarshalling (in _yaml.v2_ package), while in some cases a caller would like to perform strict YAML unmarshalling (e.g. to avoid...

It would be great to have some few lines in the README or wherever showing how to parse/load a compose file. I am not quite sure how to get started...

My compose file is like this, which is not considered valid by this package yet. ```yaml version: "3" services: test: build: . networks: - default ``` The `default` network here...

Please consider the following project: ``` # .env MAIN_DOMAIN=foo.bar SUB_DOMAIN=a.${MAIN_DOMAIN} ``` ```yaml # docker-compose.yaml services: alpine: image: alpine environment: - SUB_DOMAIN ``` Here I get (as expected): ```bash $ docker...

Hi! I have been testing `docker compose` with environment variables and the result differs from Docker and Docker-Compose. ## Test Define a `.env` file with the following: ``` ENV_A ENV_B=...

Hi, I have a feature request for you: At the moment the loader accepts a compose file with cyclic dependencies, even when the validation step is enabled. With cyclic dependencies,...