6: Multi-container apps with Compose

If you’ve been following along, you’ve containerized an app, pushed it to a registry, and run it as a container. However, most real-world apps are a lot more complicated and consist of many different containers working together. We call these multi-container apps or microservices apps.

In this chapter, you’ll use Docker Compose to deploy and manage a simple multi-container app. The goal is for you to understand the fundamentals of multi-container apps and gain some hands-on experience with Compose.

I’ve divided the chapter into the following sections:

  • Overview of the app
  • The Compose file
  • Deploy the app
  • Manage the app

Overview of the app

The application we’re about to deploy has two containers (microservices): ...

Get Getting Started with Docker now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.