Docker Compose (http://docs.docker.com/compose/) is the native Docker tool that runs interdependent containers that make up an application. We define a multicontainer application in a single file and feed it to Docker Compose, which sets up the application. In this recipe, we'll once again use WordPress as a sample application to run.
Running applications with Docker Compose
Getting ready
To install Docker Compose, run the following command:
$ sudo pip install docker-compose
How to do it
Follow these steps:
- Create a directory for the application, and within it, create...