docker-compose-up
Start and run Docker services defined in a Compose file. tldr-pages
On several platforms
Several platforms
Start all services defined in the docker-compose file
docker compose upIdentifyStart services in the background (detached mode)
docker compose up --detachIdentify--detachDetached mode: Run containers in the background Docker Compose referenceStart services and rebuild images before starting
docker compose up --buildIdentify--buildBuild images before starting containers Docker Compose referenceStart specific services only
docker compose up service1 service2 ...IdentifyStart services with custom compose file
docker compose --file path/to/config upIdentify--fileCompose configuration files Docker Compose referenceStart services and remove orphaned containers
docker compose up --remove-orphansIdentify--remove-orphansRemove containers for services not defined in the Compose file Docker Compose referenceStart services with scaled instances
docker compose up --scale service=countIdentify--scaleScale SERVICE to NUM instances. Docker Compose referenceStart services and show logs with timestamps
docker compose up --timestampsIdentify--timestampsShow timestamps Docker Compose reference