- All Courses
- Docker Essentials
- Working with Multiple Services
- Docker Compose for local stacks
Docker Compose for local stacks
Compose declares your services, their networks, and their volumes in a single file, so a new contributor gets a running application and database with one command instead of a page…
Overview
The whole stack in one command
Compose declares your services, their networks, and their volumes in a single file, so a new contributor gets a running application and database with one command instead of a page of setup instructions.
Dependencies need care. Waiting for a container to start is not the same as waiting for the database inside it to accept connections — depend on a health check, not on start order.
Override files keep one base definition and layer environment-specific changes on top, which avoids three files that have quietly diverged.
In this lesson you will:
- Describe several services in one file
- Order startup with health conditions
- Override configuration per environment
Resources
Notes are not saved yet — they clear when you leave this page.
Container networking
6m
Tagging and registries
25m