Before deep-diving into the Docker Compose tool, let's learn about the differences between multi-container applications and multi-service applications:
- Multi-container applications are applications based on multiple containers. These containers will run together on the same host. Therefore, we can deploy multi-container applications on our laptop or on any other Docker daemon. All application components will run together on a host. As a result, possible network performance issues will be mitigated because all the pieces will run together. Take into account that this deployment will not provide high availability if the host goes down. We will be able to configure the automatic restart of all components, but that is not enough for production.
- Multi-service applications are applications based on multiple services. These applications will run using Swarm orchestration and containers will run distributed on different hosts. We will learn about Docker...