Cheatsheet Pages / Docker Cheatsheet
How to operate a running Compose stack — ps, logs, exec
The stack is up and you need its status, one service's logs, or a command inside the database service.
docker compose ps # status of every service
docker compose logs -f web # follow one service
docker compose exec db psql -U postgres # run a command in the db service
