O'Reilly logo

Docker for Developers, 2nd Edition by Chris Tankersley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

5 Docker Compose

Up to this point in the book, we have mostly been looking at working with a single container. Manually configuring containers with docker run, creating networks with docker network, and managing all of that by hand is a very possible way of setting up your application, but Docker Compose allows us to specify all of that configuration through a simple file. Docker Compose will also handle managing all of the containers and setup through a set of basic commands.

Docker Compose is based on an older orchastration tool called ‘Fig.’ The idea of Fig was to make it easy to define full-stack applications in a single configuration file yet still help maintain the “one process per application” design of Docker. Docker Compose extends ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required