Docker Compose Validator
Validate Docker Compose YAML files (v2/v3). Check for syntax errors, required fields, version compatibility, and common configuration mistakes.
Drop a file or click to browse
✓ Valid1 issue
ℹinfo
version
No 'version' field — using Compose Specification (recommended).
Formatted YAML
services:
web:
image: nginx:latest
ports:
- '80:80'
depends_on:
- db
environment:
- ENV=production
db:
image: postgres:15
environment:
POSTGRES_DB: mydb
POSTGRES_USER: user
POSTGRES_PASSWORD: secret
volumes:
- db-data:/var/lib/postgresql/data
volumes:
db-data: null
About Docker Compose Validator
Docker Compose is a tool for defining multi-container Docker applications using a YAML file. This validator checks your compose file for YAML syntax errors, required fields (like 'services'), and common mistakes such as services missing both 'image' and 'build' directives, malformed port mappings, and the deprecated top-level 'version' key. It also reformats the YAML for consistency. Compatible with both Docker Compose v2 and the modern Compose Specification.
Private & free — this tool runs entirely in your browser.
Recommended: IndieKit — Ship your Next.js startup in days.affiliate
Related Formatters & Validators tools
JSON Formatter
Format, validate, and beautify JSON payloads.
Text Diff / Compare
Side-by-side or unified line/character diff comparison tool.
XML Formatter
Beautify and indent XML strings.
Minifier Suite
Minify HTML, CSS, and JS by stripping comments and whitespace.
Markdown Converter
Convert Markdown to HTML with live preview.
CSS Formatter
Beautify and indent minified or messy CSS.
HTML Formatter
Beautify and indent raw HTML markup.
SQL Formatter
Format SQL queries with keyword casing and indentation.