Docker Compose YAML Validator
Check a docker-compose.yml file for YAML syntax errors and common Compose mistakes, with the exact line of each syntax error.
Check a docker-compose.yml file for YAML syntax errors and common Compose mistakes, with the exact line of each syntax error.
Used Docker Compose YAML Validator? Share how it went to help others.
About this tool
Docker Compose YAML Validator parses your docker-compose.yml as real YAML and then checks the structure Docker Compose expects. Syntax errors are reported with the exact line and column. After parsing, it checks that there is a services section with at least one service, that each service has an image or build key, that service keys are known Compose options so typos like imagee are caught, that ports are a list in a valid format such as "8080:80", that unquoted port numbers are flagged, and that every service named in depends_on actually exists. It also reminds you that the top-level version key is obsolete in Compose v2. Tabs used for indentation are reported because YAML only allows spaces. Validation runs in your browser as you type. It is a fast first check, not a full replacement for docker compose config, which also resolves variables and extends. It recognises the service options people use every day, including image, build, command, entrypoint, environment, env_file, ports, expose, volumes, depends_on, networks, restart, container_name, healthcheck, labels, logging, deploy, secrets, configs, profiles and extends, and it allows custom x- extension fields. Each problem is listed with the service it belongs to, so fixing a long file is quick.

Copy the contents of docker-compose.yml or compose.yaml into the editor.
Syntax errors show the line and column; structure problems name the service involved.
The file is validated again as you edit, until no errors remain.
Once the file is clean here, run docker compose config on your machine to resolve variables and confirm the final configuration.
Uses a full YAML parser, so indentation and syntax errors are found with line numbers.
Unknown service keys like imagee or port are flagged.
Reports depends_on entries that point to services that don’t exist.
Your file is checked in your browser and never uploaded.
Catch mistakes before docker compose up
A typo in a key is silently ignored by some tools and only noticed when a service misbehaves.
ExampleFind that a service has enviroment: instead of environment:, so its variables were never set.
Files copied from blogs often contain tabs or broken indentation.
ExamplePaste a copied example and fix the tab on line 12 that stops Compose from loading it.
Quickly check a colleague’s Compose changes without running them.
ExampleSpot that a new worker service depends_on “redis-cache” but the service is named “redis”.
Understand why a Compose file fails before you touch the command line.
ExampleA beginner’s file uses tabs for indentation; the validator flags the exact line, and switching to spaces fixes it.
Check Compose files for tools like Nextcloud, Jellyfin or n8n before starting the stack.
ExampleAn app’s database service is named postgres but depends_on lists db, and the validator reports the missing service.
Rule out structural mistakes quickly when docker compose up refuses to start.
ExampleA service has neither image nor build, the reason Compose cannot create its container.
Avoid the most common problems
Write "8080:80", not 8080:80. Unquoted values like 22:22 can be read by YAML as base-60 numbers.
Compose v2 ignores version:, so you can remove it.
Run docker compose config on your machine to see the fully resolved file, including variables.
Put passwords in an .env file or Docker secrets instead of writing them in environment. Never commit real credentials.
YAML forbids tabs, and mixing indentation levels changes the meaning of the file. Two spaces per level is the convention.
Senior Software Engineer · Developer of Toolyconvert
Hemant developed Docker Compose YAML Validator and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.
Last updated 30 September 2026
Featured on
Toolyconvert is listed on these product directories and launch platforms.