Lesson 1.33mAdvanced7.7k students

Local stacks with Compose

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

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