

Lesson 03 · 10 min
docker compose: app + database
One file brings up the API, Postgres, and Redis with one command.
10 minLesson 3 of 9Practice includedAsk AI on any point
compose.yaml describes several services: their images, ports, variables, and volumes. docker compose up starts them together on a shared network where services see each other by name: the API connects to the database at db:5432, not localhost.
Sign in to continue
The rest of this lesson opens after sign up
The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.