The docker compose since version 2.24.0 has a new syntax
As of Docker Compose version 2.24.0, you can set your .env file, defined by the env_file attribute, to be optional by using the required field. When required is set to false and the .env file is missing, Compose silently ignores the entry.
env_file:
path: ./default.env
required: true # default
path: ./override.env
required: false
so
katenary convert docker-compose.yml
validating docker-compose.yml: services.portal.env_file.0 must be a string
Hi!
The docker compose since version 2.24.0 has a [new syntax](https://docs.docker.com/compose/how-tos/environment-variables/set-environment-variables/#additional-information-1)
> As of Docker Compose version 2.24.0, you can set your .env file, defined by the env_file attribute, to be optional by using the required field. When required is set to false and the .env file is missing, Compose silently ignores the entry.
>
> env_file:
> - path: ./default.env
> required: true # default
> - path: ./override.env
> required: false
so
```
katenary convert docker-compose.yml
validating docker-compose.yml: services.portal.env_file.0 must be a string
```
As I discovered, support for the new syntax was added to the compose-go library in release 2.0.0:
https://github.com/compose-spec/compose-go/releases/tag/v2.0.0
I will need to update the compose-go package, which isn't compatible with the previous package. And the entire Katenary codebase uses the definition.
I will try to use the v2 in a few days.
Thanks for your report.
I will need to update the compose-go package, which isn't compatible with the previous package. And the entire Katenary codebase uses the definition.
I will try to use the v2 in a few days.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Hi!
The docker compose since version 2.24.0 has a new syntax
so
As I discovered, support for the new syntax was added to the compose-go library in release 2.0.0:
https://github.com/compose-spec/compose-go/releases/tag/v2.0.0
Thanks for your report.
I will need to update the compose-go package, which isn't compatible with the previous package. And the entire Katenary codebase uses the definition.
I will try to use the v2 in a few days.
commit
569ca195dffixes this