Jump to content

Docker (software): Difference between revisions

Line 160: Line 160:


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.
{{hidden | Example docker-compose.yml |
<syntaxhighlight lang="yaml">
version: "3.9"
services:
  web:
    image: registry.gitlab.davidl.me/dli7319/davidl_me:latest
</syntaxhighlight>


==Accessing the Host==
==Accessing the Host==