YML
Docker Compose Validator
Validate the syntax and structure of docker-compose.yml — services, ports, volumes, networks and depends_on, all in your browser, nothing sent to a server.
Input YAML
1
Check result
This tool runs entirely in your browser; the file you enter is never sent to a server. Checks cover YAML syntax, required and unknown keys, image/ports/volumes formatting, correct depends_on/networks/volumes references to defined items, healthcheck and deploy, and a few common YAML pitfalls (like yes/no being parsed as a boolean by accident) — it is not a replacement for actually running
docker compose config .
ABOUT
Validate docker-compose.yml with severity-ranked findings
A Compose file that starts is not necessarily correct: the latest tag, unquoted ports, unknown keys, an invalid restart value and container_name combined with several replicas are common problems. This tool checks syntax and structure and groups findings into errors, warnings and suggestions, each tied to a location in the file. Other frequent mistakes, such as ports exposed to the internet or secrets inside the file, are covered in the linked guide.
HOW TO
How to use it
- Paste your
docker-compose.ymlor load the file. - Review the report by severity (error, warning, suggestion).
- Fix the issues in your file and validate again.
FAQ
What is the difference between
Frequently asked questions
Why avoid the latest tag?
The image can change on any pull, so deployments are not reproducible. Pin a version such as
nginx:1.27-alpine.What is the difference between ports and expose?
ports publishes a port on the host; expose only documents it for container-to-container traffic on the Compose network.