I have installed docker on centos 7. by running following commands,
curl -sSL https://get.docker.com/ | sh systemctl enable docker && systemctl start do
just use brew:
brew install docker-compose