Repository navigation
Merge V2 - V3 compose file formats (optional version field) - #7588
Conversation
6c87809 to
db101c9
Compare
Signed-off-by: aiordache <anca.iordache@docker.com>
Signed-off-by: aiordache <anca.iordache@docker.com>
Signed-off-by: aiordache <anca.iordache@docker.com>
|
This is great I was just asking for |
Signed-off-by: aiordache <anca.iordache@docker.com>
Signed-off-by: aiordache <anca.iordache@docker.com>
Signed-off-by: aiordache <anca.iordache@docker.com>
@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 <anca.iordache@docker.com>
|
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 <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
* Indicate extends can be used again docker/compose#7588 * Minor style update Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
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
--compatibilityflag: 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