Docker compose is a tool for running multi-container applications. Using compose you can configure your application’s services in a YAML file.
Installing docker compose is actually pretty simple. You can download the binary file directly from github and change the permission.
Download docker-compose binary file to /usr/local/bin.
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
Give execute permission.
sudo chmod +x /usr/local/bin/docker-compose
Tada.. You just installed docker-compose. Now you can verify the installation by checking the version.
$ docker-compose --version
docker-compose version 1.21.2, build a133471