I followed this to install Discourse in a VM with Ubuntu It works, but I don’t do email with it so YMMV