docs/content/reference/compose-file/_index.md

2.7 KiB
Raw Permalink Blame History

description keywords title toc_max toc_min grid aliases
Find the latest recommended version of the Docker Compose file format for defining multi-container applications. docker compose file, docker compose yml, docker compose reference, docker compose cmd, docker compose user, docker compose image, yaml spec, docker compose syntax, yaml specification, docker compose specification Compose file reference 4 1
title description icon link
Version and name top-level element Understand version and name attributes for Compose. text_snippet /reference/compose-file/version-and-name/
title description icon link
Services top-level element Explore all services attributes for Compose. construction /reference/compose-file/services/
title description icon link
Networks top-level element Find all networks attributes for Compose. lan /reference/compose-file/networks/
title description icon link
Volumes top-level element Explore all volumes attributes for Compose. database /reference/compose-file/volumes/
title description icon link
Configs top-level element Find out about configs in Compose. settings /reference/compose-file/configs/
title description icon link
Secrets top-level element Learn about secrets in Compose. lock /reference/compose-file/secrets/
/compose/yaml/
/compose/compose-file/compose-file-v1/
/compose/compose-file/
/compose/reference/overview/

New to Docker Compose?

Find more information about the key features and use cases of Docker Compose or try the quickstart guide.

The Compose Specification is the latest and recommended version of the Compose file format. It helps you define a Compose file which is used to configure your Docker applications services, networks, volumes, and more.

Legacy versions 2.x and 3.x of the Compose file format were merged into the Compose Specification. It is implemented in versions 1.27.0 and above (also known as Compose V2) of the Docker Compose CLI.

The Compose Specification on Docker Docs is the Docker Compose implementation. If you wish to implement your own version of the Compose Specification, see the Compose Specification repository.

Use the following links to navigate key sections of the Compose Specification.

[!TIP]

Want a better editing experience for Compose files in VS Code? Check out the Docker VS Code Extension (Beta) for linting, code navigation, and vulnerability scanning.

{{< grid >}}