CmdID / docker / docker compose
docker compose up
Builds, (re)creates, starts, and attaches to containers for a service. Docker Compose reference
30 options Its page in the Docker Compose reference
Options
Show its 30 options
--abort-on-container-exitStops all containers if any container was stopped.--abort-on-container-failureStops all containers if any container exited with failure.--always-recreate-depsRecreate dependent containers.--attach-dependenciesAutomatically attach to log output of dependent services--attachRestrict attaching to the specified services.--buildBuild images before starting containers--detach, -dDetached mode: Run containers in the background--dry-runExecute command in dry run mode--exit-code-fromReturn the exit code of the selected service container.--force-recreateRecreate containers even if their configuration and image haven't changed--menuEnable interactive shortcuts when running attached.--no-attachDo not attach (stream logs) to the specified services--no-buildDon't build an image, even if it's policy--no-colorProduce monochrome output--no-depsDon't start linked services--no-log-prefixDon't print prefix in logs--no-recreateIf containers already exist, don't recreate them.--no-startDon't start the services after creating them--pullPull image before running ("always"\--quiet-buildSuppress the build output--quiet-pullPull without printing progress information--remove-orphansRemove containers for services not defined in the Compose file--renew-anon-volumes, -VRecreate anonymous volumes instead of retrieving data from the previous containers--scaleScale SERVICE to NUM instances.--timeout, -tUse this timeout in seconds for container shutdown when attached or when containers are already running--timestampsShow timestamps--wait-timeoutMaximum duration in seconds to wait for the project to be running\--waitWait for services to be running\--watch, -wWatch source code and rebuild/refresh containers when files are updated.--yes, -yAssume "yes" as answer to all prompts and run non-interactively