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 ...

Get Spring 5.0 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.