# Compose file reference


> **New to Docker Compose?**
>
> Find more information about the [key features and use cases of Docker Compose](https://docs.docker.com/compose/intro/features-uses/) or [try the quickstart guide](https://docs.docker.com/compose/gettingstarted/).

The Compose Specification is the latest and recommended version of the Compose file format. It helps you define a [Compose file](https://docs.docker.com/compose/intro/compose-application-model/) which is used to configure your Docker application’s 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](https://github.com/compose-spec/compose-spec).

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


- [Services top-level element](/reference/compose-file/services/): Explore all services attributes for Compose.

- [Container specification](/reference/compose-file/container-spec/): Find the attributes shared by services, jobs, and init containers.

- [Workload specification](/reference/compose-file/workload-spec/): Find the attributes shared by services and jobs.

- [Networks top-level element](/reference/compose-file/networks/): Find all networks attributes for Compose.

- [Volumes top-level element](/reference/compose-file/volumes/): Explore all volumes attributes for Compose.

- [Include top-level element](/reference/compose-file/include/): Reuse and modularize Compose configurations by including other Compose files.

- [Configs top-level element](/reference/compose-file/configs/): Find out about configs in Compose.

- [Secrets top-level element](/reference/compose-file/secrets/): Learn about secrets in Compose.

- [Jobs top-level element](/reference/compose-file/jobs/): Run containers to completion, on demand or on a schedule.



