docker compose up -d
docker compose up -d [service]
Risk: Safe
What it does
Starts every service in compose.yaml.
When to use it
To start the whole app with one command.
Example
$ docker compose up -dBuild, pull and start it all in the background.
$ docker compose --profile cache up -dAlso start services in the cache profile.
$ docker compose up -d --scale api=2Run two api containers.
Learn it in: Run the stack: up and down · Official docs