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.

  • services
  • ports
  • volumes
  • lint
  • severity
Waiting for input...
docker-compose.yml
Input YAML
1
Check result
Error: 0 Warning: 0 Note: 0
—Services
—Networks
—Volumes
—Errors
—Warnings
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

  1. Paste your docker-compose.yml or load the file.
  2. Review the report by severity (error, warning, suggestion).
  3. Fix the issues in your file and validate again.
FAQ

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.