# Installation of the forum for the YAOM project

apt update && apt upgrade -y && apt dist-upgrade -y && apt autoremove -y && echo "OK" 
apt install -y sudo htop p7zip-full git curl

dpkg-reconfigure locales # Choose en_US.UTF-8

# Install and config Discourse
git clone https://github.com/discourse/discourse_docker.git /var/discourse
cd /var/discourse
./discourse-setup # It will fail while checking the domain

# edit SMTP settings, hostname and admin email
nano containers/app.yml

./launcher rebuild app

Open https://forum.yaom.org/ and follow the wizard to finish the installation.