

Lesson 04 · 13 min
Docker Compose: app, Postgres and Redis
One file describes the whole stack, and a healthcheck makes sure the API starts after the database is ready.
13 minLesson 4 of 5Practice includedAsk AI on any point
With three services, remembering long docker run commands gets tedious. Docker Compose describes the stack in a compose.yaml file, and one docker compose up creates the network, volumes and containers. The modern command is written with a space (docker compose), and the version: key in the file is obsolete and no longer needed.
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.