Docker Compose Formatter & Inspector
Catch deprecated syntax, bad indentation, and misconfigured services.
docker-compose.yml
Paste your Compose file — checked as you type.
Inspection
Structure, deprecated syntax, and indentation checks.
Top-level "version: "3.8"" is deprecated in the Compose Specification — it can be safely removed. Modern Compose infers the schema automatically.
Service "web" uses the legacy "links" key — on modern Compose, a shared user-defined network usually replaces it.
No blocking errors, but 1 thing worth cleaning up.
Cleaned YAML
version: "3.8"
services:
web:
build: .
ports:
- "3000:3000"
environment:
NODE_ENV: production
depends_on:
- api
links:
- api
api:
image: node:20-alpine
working_dir: /app
volumes:
- ./api:/app
environment:
DATABASE_URL: postgres://user:pass@db:5432/app
db:
image: postgres:16-alpine
environment:
POSTGRES_PASSWORD: pass
volumes:
- db-data:/var/lib/postgresql/data
volumes:
db-data: nullAbout this tool
Paste a docker-compose.yml file and get it checked for common problems — deprecated top-level version keys, tabs where YAML needs spaces, inconsistent indentation, services missing image or build, legacy links usage — plus a cleaned, re-indented copy of the file.
How to use Docker Compose Formatter & Inspector
- 1
Paste your docker-compose.yml contents into the input box.
- 2
Review the issues list — errors block Compose from running, warnings and info items are worth a look.
- 3
Copy the cleaned, consistently indented YAML from the output box.
Frequently asked questions
Related tools
JSON Tree Formatter & Syntax Validator
Turn messy or broken JSON into a clean, color-coded tree.
WCAG Typography Readability Checker
Check if your text and background actually pass accessibility standards.
CSS Grid & Flexbox Live Layout Playground
Adjust sliders, watch the layout update, copy the CSS.