Koskamo

The Compose file structure

Document v1 · published by Koskamo editorial · updated 2026-10-04

Original source

Adopt the Compose Specification, the latest and recommended version of the Compose file format, to define a Compose file that configures your 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, which is implemented in versions 1.27.0 and above of the Docker Compose CLI, also known as Compose v2. The Compose Specification on Docker Docs is the Docker Compose implementation; to implement your own version, see the Compose Specification repository. For a better editing experience for Compose files in VS Code, use the Docker DX extension for linting, code navigation, and vulnerability scanning. Scope: Docker Compose. Reviewed October 4, 2026.

Source and provenance

Original source
docs.docker.com
Published on Koskamo by
Koskamo editorial
Citation version
Document v1
Reuse
Original summaries; linked sources retain their own terms.

The original source supplies the underlying information. Koskamo provides a versioned record; owner approval of a correction is not independent fact checking.