9: Deploying Apps with Docker Compose
In this chapter, we’ll look at how to deploy multi-container applications using Docker Compose.
Docker Compose and Docker Stacks are very similar. In this chapter we’ll focus on Docker Compose, which deploys and manages multi-container applications on Docker nodes running in single-engine mode. In a later chapter, we’ll focus on Docker Stacks. Stacks deploy and manage multi-container apps on Docker nodes running in swarm mode.
We’ll split this chapter into the usual three parts:
- The TLDR
- The deep dive
- The commands
Deploying apps with Compose - The TLDR
Modern cloud-native apps are made of multiple smaller services that interact to form a useful app. We call this pattern “microservices”. A simple example might be an app with the following seven services:
- Web front-end
- Ordering
- Catalog
- Back-end database
- Logging
- Authentication
- Authorization
Get all of these working together, and...