Skip to content

Installing Docker and Docker Compose on a VPS – Ubuntu and Debian

How to install Docker and Docker Compose on a VPS with Ubuntu or Debian. Two installation methods, the first container, a docker-compose example with WordPress and MariaDB, ports and the UFW firewall, volumes, updates, logs, freeing up disk space and the Portainer web panel. Tested on Docker 29.9 and Debian 12.