How to Install Discourse on Ubuntu 18.04

Discourse is a modern open source discussion and forum system. In this tutorial, you will learn how to set up Discourse with Docker on Ubuntu 18.04.

Create a new VPS

It is recommended to use at least 2GB of RAM. You can order a new VPS using the link below:


Login to your VPS Hostry

After successful authorization, you need to install Docker

Install Docker

To install, please use the following program:

wget -qO- | sh

Install Discourse

First, we recommend that you create a folder called “discourse” in the /var directory

mkdir /var/discourse

Then clone the official Discourse git repository to / var / discource

git clone /var/discourse

Go to the Discourse directory

cd /var/discourse

Copy the offline sample config file to container /app.yml:

cp samples/standalone.yml containers/app.yml

Edit the Discourse configuration

Edit the container/app.yml file:

nano containers/app.yml
  • Set DISCOURSE_DEVELOPER_EMAILS to your email address.
  • Set DISCOURSE_HOSTNAME to your web address to access Discourse, for example:
  • Enter your email credentials in:


Remember to remove the # comment character in front of the line. Then save the file and exit.

Bootstrap Discourse

Run bootstrap:

./launcher bootstrap app

During installation, you may be asked a question about SSH keys. Like Yes.

Once the boot process is complete, start Discourse:

./launcher start app

To access your Discourse instance, navigate to the DISCOURSE_HOSTNAME value in your browser.

Was this article helpful?

Related Articles


  1. servers reddit

    Great article, totally what I was looking for.

Leave A Comment?