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`.
docker compose down -vUse carefully because stateful data will be deleted.
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.
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.
docker compose exec web shUse `bash` when the image includes it.
docker compose exec web bashCommon in Debian/Ubuntu based app images.
docker compose run --rm web python manage.py migrateUseful for migrations, tests, or generators.
docker compose topHelpful when debugging process models and daemons.
docker compose psUse `-a` to include stopped containers.
docker compose eventsUseful for debugging restarts and recreate loops.
Inspect config, dependencies, and remove stale resources.
docker compose configUse this to verify what Compose will actually run.
docker compose config --servicesUseful in scripts and CI checks.
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.
docker compose waitUseful in automation and test pipelines.