-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Compose V2 compose.yaml
and DRY it out
#5
Comments
If we agree on Their example is quite telling about which use case is targeted with this feature:
Which directly relates this conversation to #2 |
Some nice patterns to use Docker Compose to its full extent can be found in:
These features could also help to structure the template better: We can also use some YAML syntax rules to deduplicate code, namely anchors and alias nodes as exemplified in i.e.
This is also where I learned about Similar to them, we could also agree on better task execution runner than bash, and specify more jobs in a
Later we could consider more sophisticated task runners, like In the new Compose, we can also use Docker Stack's |
is a nice example about how a |
compose.yaml
to refer to the Compose V2 spec explicitlycompose.yaml
and DRY it out
In addition to the previous YAML examples, here's a writeup (found via the veggiemonk/awesome-docker list of Docker resources and projects: |
Is your feature request related to a problem? Please describe.
Currently the
docker-compose.yml
manifests, which do not carry aversion:
tag and are as such Compose v2 manifests, can also be interpreted by deprecateddocker-compose
clients.This in return can lead to subtle errors in the interpretation of the provided keys and values, where implementation details have changed between
docker-compose
/Compose v1 anddocker compose
/Compose v2.Describe the solution you'd like
mv docker-compose.yaml compose.yaml
Describe alternatives you've considered
We remain backwards compatible and support multiple runtime engines at the same time.
Additional context
Actually we want to run the stack locally in Kubernetes, but we are just not there yet.
The text was updated successfully, but these errors were encountered: