Deploying your application with Docker Compose
Up until now, actually deploying the MyEvents application from existing container images involved a number of docker container run
commands. Although this works reasonably well for testing, it becomes tedious once your application runs in production, especially when you want to deploy updates or scale the application.
One possible solution for this is Docker Compose. Compose is a tool that allows you to describe applications composed of multiple containers in a declarative way (in this case, a YAML file that describes which components have built your application).
Docker Compose is part of the regular Docker installation packages, so if you have Docker installed in your local machine, you should also have Docker Compose available. You can easily test this by invoking the following command on your command line:
$ docker-compose -v
If Compose is not available on your local machine, consult the installation manual at https://docs.docker.com/compose...