Docker Compose Validator

Validate compose.yaml or docker-compose.yml online. Find YAML syntax errors and invalid Docker Compose fields with line and column feedback.

Validation results

Paste Compose YAML or open a file to check.

How to validate a Docker Compose file

Paste a Compose file or open a local .yaml or .yml file, then select Validate. Choose Load example to try a working configuration. Selecting an issue takes you to the affected YAML. The file is processed in your browser.

What does the Docker Compose validator check?

The tool checks YAML syntax, duplicate keys, and the structure and types in the Compose Specification. It checks service definitions and options for networks, volumes, configs, and secrets. The same checks apply to compose.yaml, compose.yml, and docker-compose.yml.

Check the resolved Compose configuration

Run this command in your project directory to check the effective configuration with Docker Compose. The CLI can resolve environment variables, load referenced files, and combine multiple Compose files for your project.

docker compose config --quiet

Docker Compose file reference