Ad space (banner)
AD

Got the fundamentals? A structured Docker course is a fast way to level up.

Find Docker courses on Udemy

Affiliate link. Costs you nothing extra.

🐳Docker Lessons
Lesson 43 / 45

Starting Everything with docker compose up

When you want to start every service defined in your Compose file, use docker compose up. It creates and starts them all together.

The syntax is docker compose up -d, where -d runs everything in the background, exactly as it does for docker run.

Running docker compose up -d creates the network, then starts each service in dependency order, reporting each one as it comes up.

A common stumble is expecting it to rebuild images after a code change. Add --build when you want images rebuilt.

In real work, it is the single command that brings up a local development environment.

Docker
Try it (type this into the pseudo terminal)
docker compose up -d

🧑‍💻 You can type this command into the Docker pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)