Developing Java Applications with Spring and Spring Boot
by Claudio Eduardo de Oliveira, Greg L. Turnquist, Alex Antonov
The docker-compose tool
In the microservices architectural style, the whole solution is decoupled in small and well-defined services. Usually, when we adopt these styles, we have more than one artifact to deploy.
Let's analyze our solution; we have three components to deploy. We have used the Docker containers and we have run these containers using the docker run command. One by one, we have used docker run three times. It is quite complex and very hard to do in the development routine.
docker-compose can help us in this scenario. It is a tool which helps to orchestrate Docker containers in complex scenarios like ours.
Let's imagine our application is growing fast and we need to build four more microservices to achieve the desired business ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access