I keep running into this question in Google search results and it still doesn’t have an answer. I decided to do something about that.
For compose v1 the source code tells me that ‘status’ and ‘source’ are valid filter keys (status=??? or source=???), with status being allowed to take values ‘running’, ‘stopped’, ‘paused’ or ‘restarting’ and source being allowed to take values ‘image’ or ‘build’.
This would suggest the following is an exhaustive list of all single-filter filter values:
As an aside, services that are restarting will be listed when running
docker-compose ps --services filter "status=running" so the whole filter thing is a bit squiffy.
compose v2 removes the ‘filter’ option and so over time this question will disappear into irrelevance.