see all docker compose cotainers code example
Example 1: list stopped containers
docker ps --filter "status=exited"
Example 2: list dockers docker compose
docker-compose ps
docker ps --filter "status=exited"
docker-compose ps