How does Compose handle build configuration?
IntermediateConceptDocker Compose
Answer
build: accepts a context path or a map with dockerfile, target, args, cache_from, cache_to, platforms, secrets, ssh. With both build and image, the built image is tagged with the image name. docker compose build --no-cache and up --build rebuild.
More on Docker Compose
What is Docker Compose and what problem does it solve?Beginner`docker-compose` vs `docker compose`?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?Intermediate