Please help us update it! We pay for new and updated articles.
See Vultr's Request for Article (RFA) System for details and include RFA# 238 in your request.
Discourse is a modern, open-source discussion and forum system. Visit the official site for a demo and a breakdown of the current feature set. This tutorial will teach you how to setup Discourse with Docker on Ubuntu 14.04.
1GB of RAM is minimum amount, although it is recommended to use at least 2GB of RAM. Always select the latest 64-bit LTS distribution.
Connect to your server using SSH via the Terminal on Mac or PuTTY on Windows.
Replace "123.456.7.8" with your server IP.
You will be prompted to type "Yes" or "No" to add the server's RSA fingerprint to your list of known hosts. Type "Yes" and hit enter.
sudo install -o root -g root -m 0600 /dev/null /swapfile
dd if=/dev/zero of=/swapfile bs=1k count=1024k
echo "/swapfile swap swap auto 0 0" | sudo tee -a /etc/fstab
sudo sysctl -w vm.swappiness=10
Run the following command:
wget -qO- https://get.docker.io/ | sh
git clone https://github.com/discourse/discourse_docker.git /var/discourse
cp samples/standalone.yml containers/app.yml
It is important to note that you must have your email settings setup properly - otherwise you'll have a broken site!
./launcher bootstrap app
You may be asked a question during the installation about SSH keys. Type "Yes".
Once the bootstrap process completes, start Discourse:
./launcher start app
Congratulations - you now have your own instance of Discourse up and running!
To access it, simply type in what you set for "DISCOURSE_HOSTNAME" in the configuration file.