docker compose ps
docker compose ps | logs | exec <service> <cmd>
Risk: Safe
What it does
Looks at the services of this project.
When to use it
To check states, read logs, or step inside.
Example
$ docker compose psEvery service with its state and ports.
$ docker compose logs apiLogs of one service.
$ docker compose exec api shA shell inside the api service.
$ docker compose configThe final compose.yaml, with variables filled in.
$ docker compose restart apiRestart one service.
Learn it in: Run the stack: up and down · Official docs