Building and sharing multi-container applications
Docker Compose allows you to run multi-container applications on single nodes. These applications will not really have high availability, as you will have a single point of failure and you will probably prefer to use orchestrated clusters by using Kubernetes or Docker Swarm. But even in these situations, docker-compose
will help you build and manage the container images for your project. In this section, we will learn how to use these features.
Your Compose YAML file will have some service definitions, and each service’s container will need an image definition or a build
directory. The image
key will be used for either downloading this image from a registry (if it does not exist in your container runtime already) or setting the name of the service’s container image to be created if a build
folder exists. As we already mentioned in the previous section, the project’s name will be used as a prefix for all your...