$devtoolkit.sh/tools/docker-compose-validator

Docker Compose Validator

Validate docker-compose YAML syntax and check for common configuration issues.

$docker-compose.yml
0 chars1 lines

Related Tools

FAQ

What Compose-specific checks are performed?
The validator checks for: deprecated top-level version key presence, services lacking both image and build, invalid port mapping formats (e.g. missing quotes around mappings starting with a number), and unknown top-level keys.
Does this replace docker compose config?
No — docker compose config on your machine performs full validation against the Compose spec with access to environment variables and .env files. This tool gives quick browser-based syntax and sanity checks.
Which Compose file versions are supported?
The tool handles both the legacy versioned format (version: "3.9") and the modern unversioned format recommended by the Compose specification.

Paste a docker-compose.yml file to validate YAML syntax and check for common Compose-specific issues: missing or deprecated version fields, invalid top-level keys, services without an image or build context, and port mapping format errors. Shows the parsed service structure on success.

/tools/docker-compose-validatorv1.0.0