Skip to content
skillbld
Docker · 12-day planAll days
Day 11 of 12 35 min

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
  1. 1The compose file
  2. 2Up and running
  3. 3Everyday commands
  4. 4Changing the code
  5. 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

Keep going

Day 11: Docker Compose · Docker · SkillBld