Multi-Container Applications with Docker Compose
summary
Demonstrates using Docker Compose to reproduce production stacks locally with concrete examples: a two-service Python web app calling another service, and a multi-container web app plus Postgres initialized via a mounted volume so the database is ready at startup. Covers splitting configs and using override compose files to expose ports for local development, lifecycle commands (docker-compose up/run/down --rmi --volumes) to start, run one service, and fully clean, and using PROJECT_NAME to run multiple isolated stacks concurrently.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:24Docker Compose basics
- 3:56Docker Compose usage
- 8:10Single container example
- 10:17Two containers communicating
- 12:46Database and Python app
- 15:01Docker Compose files
- 16:30Override configs
- 19:05Cleaning environments
- 23:19Running identical stacks
- 27:17Conclusion
related talks
28mDocker-Composing Your Way to a Better Development Environment
50mComposing your Containerized Microservices
30mSimplify All the Things with Docker Compose
14mGetting started with Docker and Swarm
44mDocker and the Path to a Better Staging Environment
26mRunning an AWS Stack on Your Local Machine
49mDocker Compose: From Localhost to the Cloud
21mMaking Docker Actually Work
