Docker · 12-day planAll days
Day 11 of 12 35 mincompose.yamlup & downServices
Describe a whole application, with its services, networks and volumes, in one compose.yaml file and run it with a single command. Learn the compose file format, the everyday commands (up, ps, logs, exec, down), how to rebuild after code changes, and how to use .env files.
By the end of today you can
- Read and write a compose.yaml with services, ports, environment, volumes and depends_on
- Start and stop a whole app with docker compose up -d and down
- Check on services with ps, logs and exec
- Rebuild after code changes with up --build
- Use variables and .env files in compose.yaml
What's inside
- 5 sections
- 2 diagrams and mind maps
- 5 code examples you can run
- 5-question quiz
- 1The compose file
- 2Up and running
- 3Everyday commands
- 4Changing the code
- 5Variables and .env
Sign in free to read this lesson
Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.
Sign in free