How to install and condifure docker compose on Ubuntu server

Following are the steps for installing and configuring docker compose on a Ubuntu server. make sure you have docker installed before installing docker compose.

  1. Download docker compose binary to users bin directory.

     curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  2. Change the executable permissions for compose.

    chmod +x /usr/local/bin/docker-compose
  3. Check the instllation by checking the version of docker compose.

     docker-compose --version