Local stacks with Compose

Compose runs your app together with its database and cache, with one file describing the whole local environment.

Lesson 1.33m 14sAdvanced7.7k students

Chapters

3:14
  1. 0:00Running Multi-Container Apps
  2. 0:12What is Docker Compose?
  3. 0:29Docker Compose File Structure
  4. 0:55Basic docker-compose up Command
  5. 1:08Command Variations
  6. 1:33Multi-Container Example
  7. 2:03What Happens When You Run docker-compose up
  8. 2:30Key Benefits
  9. 2:58Outro

What this lesson covers

  • Define multi-service stacks in one file
  • Wire up networks, volumes, and environment variables
  • Keep local configuration close to production

This lesson sits in Containers and Images, part of DevOps with Docker and Kubernetes. It assumes what came before it and leads directly into the next lesson in the module.

In this lesson you will

  • Define multi-service stacks in one file
  • Wire up networks, volumes, and environment variables
  • Keep local configuration close to production

Resources