5,323
edits
Line 157: | Line 157: | ||
===Compose file=== | ===Compose file=== | ||
See | See [https://docs.docker.com/compose/compose-file/compose-file-v3/ Compose file specification]. | ||
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 | | {{hidden | Example docker-compose.yml | | ||
<syntaxhighlight lang="yaml"> | <syntaxhighlight lang="yaml"> | ||
version: "3.9" | version: "3.9" | ||
Line 169: | Line 168: | ||
image: registry.gitlab.davidl.me/dli7319/davidl_me:latest | image: registry.gitlab.davidl.me/dli7319/davidl_me:latest | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | |||
==Accessing the Host== | ==Accessing the Host== |