Install Discourse on a new Ubuntu server

apt update && apt upgrade
apt install git curl netcat
git clone https://github.com/discourse/discourse_docker.git /var/discourse
cd /var/discourse
chmod 700 containers
./discourse-setup

or for two container setup:

./discourse-setup --two-container