Discourse Civilized Discussion Kit on Xenial at prgmr.com


As intended by its creators Discourse Civilized Discussion Kit is becoming the WordPress of forums. It’s a super sophisticated mobile-first, single-page-application discussion forum software written with Rails for the backend API and EmberJs for frontend.

I’ve recently started using Prgmr.com, an independent Xen hosting provider in Silicon Valley. Their prices are better than Digital Ocean and the performance seems exceptional. No, this is not paid content or an affiliate link. I don’t do that.


The official Discourse docs are excellent, and are canonical, there are also good Digital Ocean docs, although they might not be so current, for instance you dont need 2GB RAM, 1GB is fine.

We will use the 30 minute cloud official install docs

We have a $5 / 1.5 GB RAM Xen VPS from Prgmr.com with Docker pre-installed, if not run these to install AUFS from Discourse comment

wget -qO- https://get.docker.com/ | sh
sudo apt-get install linux-image-extra-$(uname -r)
sudo modprobe aufs

Let’s login via ssh

ssh -i ~/.ssh/id_rsa [email protected]
Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-62-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
Last login: Fri Feb 3 20:33:10 2017 from 2603:3024:1404:3800:a96a:ec76:559d:327a
[email protected]:~#

Discourse is one of the first public free software apps to use Docker, and they do it really well, as a kind of image delivery system

we install Docker thus

wget -qO- https://get.docker.com/ | sh

I get an error and uncomment these lines /etc/login.defs from Github comment

# System accounts
SYS_GID_MIN               100
SYS_GID_MAX               999

and then install docker-engine

sudo apt install docker-engine

[email protected]:~# docker -v
Docker version 1.13.0, build 49bf474


Install Discourse

ripped straight from the docs

sudo -s
mkdir /var/discourse
git clone https://github.com/discourse/discourse_docker.git /var/discourse
cd /var/discourse

EDITORS NOTE: unfinished and needing changes