Compose vs generic YAML
Generic YAML tools can tell you whether syntax parses. This validator also checks services, named volumes, networks, configs, secrets, ports, environment values, dependencies, and healthcheck shapes.
Paste a Docker Compose file to format YAML, validate structure, and review service, volume, network, and environment warnings.
Paste Docker Compose YAML or load a sample to begin.
Paste docker-compose.yml content. The tool parses YAML locally and checks Compose services, volumes, networks, configs, and secrets.
Formatted output appears after validation.
Compose validation
Validate Docker Compose YAML to see service counts, named resources, findings, and a service summary table.
Docker Compose Guide
This tool is for docker-compose.yml and compose.yml files where generic YAML validation is not enough.
Generic YAML tools can tell you whether syntax parses. This validator also checks services, named volumes, networks, configs, secrets, ports, environment values, dependencies, and healthcheck shapes.
Each service is inspected for image or build configuration, ports, environment, env_file, volumes, networks, depends_on, command, restart, and healthcheck fields.
The report warns about missing services, empty service definitions, invalid ports, undefined named resources, legacy version usage, and environment variable names that look sensitive.
Compose files often contain development credentials. Validation runs locally, and the tool never executes containers, reads env files, pulls images, or contacts Docker registries.
Formatting normalizes YAML indentation and structure. Comments and original spacing may not be preserved, so review the output before replacing a hand-written file.
Copy or download the JSON report for pull request notes, CI discussion, or local troubleshooting without including the original Compose YAML in analytics.
No. It only parses and inspects YAML text in the browser. It does not execute containers, read local files, pull images, or call registries.
Yes. YAML validation checks syntax, while this page also understands Compose concepts such as services, ports, named volumes, networks, configs, and secrets.
Formatting may not preserve comments or original spacing. Keep a backup when replacing a manually edited compose file.
Yes. Use the download action to save the formatted output as docker-compose.yml.
No. Processing is local in your browser and the tool does not upload or store Docker Compose content.