Discourse is a powerful and open source forum platform. It allows you to create a forum for your needs simply and manage it an a easy way. In this guide you will learn how to run your own discourse forum on DreamCompute on an Ubuntu Xenial server.
There are a few hardware requirements for discourse:
- Single core CPU
- 1GB of RAM
- 10GB of disk storage
Though I would recommend running it with at least 2 cores and 2GB of RAM as that will allow for more database caching and better performance overall.
Discourse also requires that you have Docker installed:
[root@localhost]# apt update
[root@localhost]# apt install docker.io
Once you have your server created and docker installed, login as root and download the Discourse Docker repo:
[root@localhost]# mkdir /var/discourse
[root@localhost]# git clone https://github.com/discourse/discourse_docker.git /var/discourse
This downloads the repository that knows how to run and manage discourse using docker, so you don’t have to worry about the dependencies.
After you have downloaded the Discourse Docker repository, you can configure discourse:
[root@localhost]# cd /var/discourse
Follow the prompts and enter the information as necessary, if you do not have a DNS entry for this host you can set the hostname to the IP address of the server, but you will be unable to use Lets Encrypt for SSL.
The Discourse container is managed by using the launcher script. To see the available commands run:
If you wish to start the site, run:
[root@localhost]# ./launcher start app
The first time this runs it takes a while as it has to build the container. After your command finishes you should be able to view the site in a browser and see the web setup guide.
For more information see the Discourse documentation.