-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Merge V2 - V3 compose file formats (optional version field) #7588
Conversation
6c87809
to
db101c9
Compare
Signed-off-by: aiordache <[email protected]>
Signed-off-by: aiordache <[email protected]>
Signed-off-by: aiordache <[email protected]>
This is great I was just asking for |
Signed-off-by: aiordache <[email protected]>
Signed-off-by: aiordache <[email protected]>
Signed-off-by: aiordache <[email protected]>
@jamshid we don't have yet equivalent properties in I opened an issue on the compose-spec to see if we can have them added/moved to |
Signed-off-by: aiordache <[email protected]>
I don't clearly understand the consequences of this update. I have single service extension with |
Yes @melicerte - you're understanding this correctly 👍 Post-1.27.x, |
Thanks @EricHripko this is amazing ! |
However shouldn't documentation be updated accordingly ? |
Yep, sounds like a PR to docker.github.io is needed 🙂 |
We need it for "extends". See also: * https://issues.apache.org/jira/browse/ARROW-13199 * apache#10611 * docker/compose#7588
We need it for "extends". See also: * https://issues.apache.org/jira/browse/ARROW-13199 * #10611 * docker/compose#7588 Closes #10681 from kou/require-docker-compose-1.27.0-or-later Authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
* Indicate extends can be used again docker/compose#7588 * Minor style update Co-authored-by: Usha Mandya <[email protected]>
This update introduces an unified compose format that should be compatible with all v2.x and v3.x compose files.
The version field is made optional (the format is automatically detected from the structure of the file).
** version was required to distinguish with 1.x format
For each version, docker-compose validated against its specific schema. Now we have only 2 schemas:
Related to the conversion from v3 to v2 using the
--compatibility
flag: the deploy field was being ignored unless this flag was passed and only one container per service was created.We now apply the properties from deploy regardless of the --compatibility flag.
Test sample:
BEFORE:
One container per service was created unless we pass
--compatibility
.NOW:
Version field is optional, we can either remove it or leave it as it is, result is the same:
Same we get from a v2 file:
v2.x and v3.x schema merging relates to #7201
The removal of compatibility mode relates to https://github.com/docker/dev-tooling-team/issues/121