docker-compose not honoring CPU limits
Solution 1:
So I've managed to fix my own issue. I had a thought, and so I did this by removing docker compose v2 (yaml v3) with
rm ~/.docker/cli-plugins/docker-compose
and installed docker-compose v1.25.0
from the repository with
apt install docker-compose -y
The limits are now being honored when running the container.