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 case, it will implicate on four more docker run
commands and will probably be painful to maintain, especially during the development life cycle. Sometimes, we need to promote the artifacts to test the environment and we probably need to modify our command...