Jump to content

Docker (software): Difference between revisions

Line 145: Line 145:
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]


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 no longer need to specify the 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.


===Accessing Host===
===Accessing Host===