Docker Compose inspector
Paste a Docker Compose file to see its services in start order with their dependencies, ports, networks and volumes, and catch mistakes: undefined services, networks, volumes, secrets and configs, host port clashes, dependency cycles and waits on services without a healthcheck. Runs in your browser.
Last updated
What it does
- Lists every service in the order Compose starts them, with its image or build context, published ports, networks, volumes, environment size, healthcheck and restart policy.
- Shows what each service waits for:
depends_on(started, healthy or completed),links,network_mode: service:xandvolumes_from. - Flags references that would fail at
docker compose up: services, networks, named volumes, secrets and configs that aren't defined, andextendsof a missing service. - Finds host port clashes, including ranges, protocols and host IPs (
127.0.0.1:80and0.0.0.0:80clash;tcpandudpdon't), and dependency cycles. - Warns about common traps: waiting for
service_healthyon a service with no healthcheck, databases published on every interface, images without a fixed tag, and the obsoleteversion:key.
What it can't see
Variables such as ${PORT} and .env files aren't resolved, so ports and names built from them aren't checked. Files merged with -f or include: aren't loaded: paste the merged result of docker compose config to check everything together. Healthchecks defined inside an image are invisible here.
Questions
- Does depends_on wait until the database is ready?
- Only with
condition: service_healthyand a healthcheck on the database. The short form (depends_on: [db]) waits for the container to start, not for the database to accept connections. - Do services need to publish ports to talk to each other?
- No. Services on the same network reach each other by service name and container port (
db:5432). Publishing withports:only matters for access from the host or outside. - Is my compose file uploaded?
- No. It is parsed and checked in your browser, so internal hostnames and credentials in it stay on your device.