A compose file with a dozen services is hard to picture from YAML alone. Paste yours or open the file, and each service, network, volume and published port becomes a node, with lines showing what connects to what. The PNG export is handy for documentation and handovers.
Services on the same network reach each other by service name, so a web service connects to db:5432, not to localhost. Compose creates a default network for the project; if you define your own networks, two services must share at least one of them to talk.
ports: "8080:80" publishes container port 80 on port 8080 of the host, where other machines can reach it. expose only documents a port; containers on the same network can reach each other’s ports without either setting.
Another container or process on the host already uses that host port. Find it with docker ps or sudo ss -tulpn | grep :8080, then change the left-hand (host) side of the mapping, for example "8081:80".
A named volume such as dbdata:/var/lib/postgresql/data is managed by Docker and survives docker compose down unless you add -v. A bind mount such as ./config:/etc/app maps a folder on the host, so the host’s file ownership (and SELinux labels on RHEL-based systems) apply.
docker compose config validates the file and prints the fully resolved version with variables filled in. It’s the quickest way to catch indentation mistakes and misspelled keys.
Related tools: Kubernetes Manifest Builder · Error Message Decoder · All tools A–Z
Most tools run entirely in your browser. Tools marked 📡 contact outside services, as listed in the Privacy Policy. Review commands before you run them; see the Terms.