Start services in foreground
Builds, creates, and starts all services defined in the Compose project.
docker compose upUse this for the default local startup flow.
Commands for starting, stopping, inspecting, and operating Docker Compose projects.
Start, stop, rebuild, and inspect a Compose project.
Builds, creates, and starts all services defined in the Compose project.
docker compose upUse this for the default local startup flow.
docker compose up -dUseful for long-running local environments.
docker compose up --buildUseful when Dockerfiles or build contexts changed.
docker compose downLeaves named volumes unless you add `-v`.
Removes containers, networks, and named volumes.
docker compose down -vUse carefully because stateful data will be deleted.
Starts previously created services without recreating them.
docker compose startUseful after `docker compose stop`.
docker compose stopContainers remain available for `start` later.
docker compose restartUseful after config changes external to the image.
docker compose pauseSuspends processes without stopping the containers.
docker compose unpausePair with `pause` during testing.
Build, pull, and push service images.
docker compose buildGreat when working from source.
docker compose build --no-cacheUseful when debugging build issues.
docker compose build webSpeeds up iteration on a single app container.
docker compose pullUseful before a deployment or refresh.
Pulls only pure image-based services.
docker compose pull --ignore-buildableHandy in mixed build/image projects.
docker compose pushUseful in CI after a successful build.
docker compose imagesUseful for audit and cleanup work.
Inspect output and run commands inside services.
docker compose logsUse service names to narrow the output.
docker compose logs -fHelpful during startup and debugging.
docker compose logs --tail=100 webKeeps output focused during triage.
Executes a shell inside an already-running service container.
docker compose exec web shUse `bash` when the image includes it.
Runs Bash inside the running service container.
docker compose exec web bashCommon in Debian/Ubuntu based app images.
Starts a fresh container for a one-off task and removes it after exit.
docker compose run --rm web python manage.py migrateUseful for migrations, tests, or generators.
Displays processes running inside service containers.
docker compose topHelpful when debugging process models and daemons.
docker compose psUse `-a` to include stopped containers.
Streams container lifecycle events for the project.
docker compose eventsUseful for debugging restarts and recreate loops.
Inspect config, dependencies, and remove stale resources.
Merges files, interpolates variables, and prints the final Compose model.
docker compose configUse this to verify what Compose will actually run.
docker compose config --servicesUseful in scripts and CI checks.
Shows named volumes declared in the effective config.
docker compose config --volumesHelps audit stateful resources.
docker compose config --profilesHelpful when organizing optional services.
docker compose lsUseful when you run many stacks locally.
docker compose rmUseful after experimenting with one-off runs.
docker compose killUseful when graceful stop is hanging.
Waits until selected services stop and returns their exit codes.
docker compose waitUseful in automation and test pipelines.