Depending on your specific project requirements (such as needing to mount directories) I would suggest either using the remote docker environment or running docker-compose on a virtual machine.
You can learn more about this here: https://circleci.com/docs/2.0/docker-compose/#using-docker-compose-with-docker-executor