I've often been able to alias drun='docker compose run --rm --build' and simplify down to:
drun test
Should be able to encode all those wayward args into docker-compose.yml or Dockerfile and only use vanilla docker commands -- that's the whole point of containerization