Skip to content
Opsfolk

Running containers, topic 30 of 41

Docker Compose

Compose describes several containers in a compose.yaml file: each service's image or build, its ports, variables, volumes and dependencies. docker compose up starts them all on a network of their own, where they find each other by service name, and docker compose down removes them.

It is how most projects run a local stack of an app, a database and a cache, and it runs small production setups on one server too. Learn depends_on with a health condition, profiles, and override files.

On Opsfolk

Nothing of ours for this topic yet: an article is on its way.

Elsewhere

Your progress