O'Reilly logo

Build Your Own PaaS with Docker by Oskar Hane

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

Chapter 5. Connecting Containers

It's time to connect all our three containers to form a single unit of modularized parts. I'll introduce you to two services, Docker Compose and Crane, which can be used to automate this. We'll go through the following topics in this chapter:

  • Manually connecting containers together
  • Exploring the contents of a data volume container
  • Connecting containers to a configuration file using Docker Compose
  • Connecting containers to a configuration file using Crane

Manually connecting containers

Let's take a look at how to connect our service containers to our data volume container. First, we have to run our data volume container, then run our MySQL container, and lastly run our WordPress container, as shown in the following command: ...

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