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

2.9 KiB
Raw 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 Overview 4 1
title description icon link
Status of the Specification Read about the status of the specification. select_check_box /compose/compose-file/01-status/
title description icon link
The Compose application model Learn about the Compose application model. storage /compose/compose-file/02-model/
title description icon link
The Compose file Understand the Compose file. web_stories /compose/compose-file/03-compose-file/
title description icon link
Version and name top-level element Understand version and name attributes for Compose. feed /compose/compose-file/04-version-and-name/
title description icon link
Services top-level element Explore all services attributes for Compose. construction /compose/compose-file/05-services/
title description icon link
Networks top-level element Find all networks attributes for Compose. lan /compose/compose-file/06-networks/
title description icon link
Volumes top-level element Explore all volumes attributes for Compose. database /compose/compose-file/07-volumes/
title description icon link
Configs top-level element Find out about configs in Compose. settings_suggest /compose/compose-file/08-configs/
title description icon link
Secrets top-level element Learn about secrets in Compose. lock /compose/compose-file/09-secrets/
/compose/yaml/
/compose/compose-file/compose-file-v1/

New to Compose?

Find more information about the key features and use cases of Docker Compose or try the get started guide. { .tip }

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.

Note

Compose V1 no longer receives updates and will not be available in new releases of Docker Desktop after June 2023.

Compose V2 is included with all currently supported versions of Docker Desktop. For more information, see Migrate to Compose V2.

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

{{< grid >}}