Docker Compose Validator
Validate and lint docker-compose.yml files instantly. Detect errors, warnings, deprecated keys, and structural issues. Free, fast, and 100% client-side.
docker-compose.yml
Load .yml / .yaml file
Services
Issues
FAQ
What does this validator check?
It validates the structure of docker-compose.yml files: required keys (services), service definitions (image/build), port formats, volume mounts, environment variables, depends_on references, network and volume definitions, and deprecated or mixed-version keys.
Does it support all Compose versions?
It detects and adapts to Compose spec v2, v2.1, v3.0 through v3.9, and latest (no version key). Lint rules vary by version — for example, cpu_shares and mem_limit are deprecated in v3.
Is my compose file sent to a server?
No. All parsing and validation happens entirely in your browser. Your compose file never leaves your device.
Can I load a file from disk?
Yes. Click the file input to select a .yml or .yaml file. It will be read locally using the FileReader API and loaded into the textarea.
What YAML features are supported?
The validator uses a minimal indentation-based parser that handles common docker-compose patterns: key-value pairs, lists (with - prefix), quoted strings, and nested structures. Full YAML features like anchors, aliases, and multi-line blocks may not parse perfectly.