Jump to content

Docker (software): Difference between revisions

Line 157: Line 157:


===Compose file===
===Compose file===
See [https://github.com/compose-spec/compose-spec/blob/master/spec.md#compose-file compose-file specs]
See [https://github.com/compose-spec/compose-spec/blob/master/spec.md#compose-file compose-file specs] and [https://docs.docker.com/compose/compose-file/compose-file-v3/ compose file v3 reference].


Previously, the Compose file (<code>docker-compose.yml</code>) required a version. Version 2 and version 3 had different options and not all options from version 2 were available in version 3. However, as of docker-compose v1.27+, you should no longer specify a version and options from both versions are supported.
Previously, the Compose file (<code>docker-compose.yml</code>) required a version. Version 2 and version 3 had different options and not all options from version 2 were available in version 3. However, as of docker-compose v1.27+, you should no longer specify a version and options from both versions are supported.