`docker-compose` vs `docker compose`?
BeginnerConceptDocker Compose
Answer
docker-compose (v1, Python) is end-of-life. docker compose (v2+, Go) is a Docker CLI plugin and follows the Compose Specification. The top-level version: key is obsolete and ignored (it prints a warning), so omit it.
More on Docker Compose
What is Docker Compose and what problem does it solve?BeginnerShow a minimal Compose file with a web app and a database.BeginnerWhat does `depends_on` guarantee?IntermediateHow do containers in Compose reach each other?BeginnerHow does Compose choose the project name and why does it matter?IntermediateWhat is the difference between `ports` and `expose` in Compose?Beginner