March 2017
Beginner to intermediate
925 pages
18h 11m
English
Docker Compose (http://docs.docker.com/compose/) is the native Docker tool to run the 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. At the time of writing, Compose is still not production-ready. In this recipe, we'll once again use WordPress as a sample application to run.
Make sure you have Docker Version 1.3 or later installed on the system. To install Docker Compose, run the following command:
$ sudo pip install docker-compose
docker-compose.yml to define the app:Read now
Unlock full access