Docker Compose Cheat Sheet/Start services in foreground

Builds, creates, and starts all services defined in the Compose project.

Section: Project Lifecycle

Start services in foreground

bash
bash
docker compose up
Explanation

Use this for the default local startup flow.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Project Lifecycle
Start services in background
Run the full stack in detached mode.
OpenIn sheetbashsame section
Build and start services
Rebuild images before starting containers.
OpenIn sheetbashsame section
Stop and remove resources
Stops containers and removes project networks.
OpenIn sheetbashsame section
Stop and remove volumes
Removes containers, networks, and named volumes.
OpenIn sheetbashsame section
Start existing containers
Starts previously created services without recreating them.
OpenIn sheetbashsame section
Stop running services
Gracefully stops running containers in the project.
OpenIn sheetbashsame section