Install necessary tools:

sudo apt install apt-transport-https ca-certificates curl software-properties-common -y

Add Docker key:

curl -fsSL | sudo apt-key add -

Add Docker repo:

sudo add-apt-repository "deb [arch=amd64] focal stable"

Switch to correct repo:

apt-cache policy docker-ce

Install Docker:

sudo apt install docker-ce -y

If you are not root, run this to allow using Docker without sudo in the future:

sudo usermod -aG docker ${USER}

Install Docker-Compose

sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

Set permission:

sudo chmod +x /usr/local/bin/docker-compose

Done. Easy!