How to install Discourse on Ubuntu 22.04 LTS Jammy Linux

Learn the commands to install and configure the Discourse forum on the Ubuntu 22.04 Jamy JellyFish server using the terminal to establish your own community.

Discourse is open source forum software that can also be used as a commenting system for a website. The creators want to create the basis of modern Internet forums.

The speech relies on Ruby on Rails, Postgres and Redis. On the client side, makers rely on the Ember.js JavaScript framework. The software is licensed under the GPL 2.0 and the source code can be found at GitHub. It was launched in 2014, so it has been around for 7 years now. Additionally, the creators – including Stack Overflow co-founder Jeff Atwood – incorporated various newer elements that we know from social networks or commenting systems such as Disqus.

In addition to traditional email login, Discourse users should also be able to login with their existing accounts on Twitter, Facebook, Google, Yahoo, or GitHub.

Steps to Install Discourse Forum on Ubuntu 22.04 LTS Server

The steps given are common to other Linux systems based on Ubuntu or Debian, including Linux Mint, MX Linux, POP OS, etc.


• Ubuntu Server 22.04
• Docker
• A non-root sudo user
• Internet connection
• at least 2 GB of RAM

1. Update Ubuntu Server 22.04

To add a repository over HTTPS, we need to install CA certificates, along with other tools that we need later in the tutorial. Start by running the system update command, then install the required packages:

sudo apt update -y
sudo apt-get install apt-transport-https ca-certificates git curl gnupg -y

2. Add Docker GPG key and repository

The Ubuntu 22.04 talk needs Docker to be installed properly, therefore, to make sure we have the latest version; Let’s add the Docker repository and GPG key using the given commands:

Add a key:

sudo mkdir -p /etc/apt/keyrings
curl -fsSL | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

Add a repository:

"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] 
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update

3. Install Docker for Discourse

Now run the given command to install Docker platform and other tools on your Debian 11 Linux.

sudo apt-get install docker-ce docker-ce-cli -y

4. Download Discourse on Ubuntu 22.04

Once the Docker is on our system, let’s create a dedicated directory for Discourse, then clone its git repository for later installation.

sudo mkdir /var/discourse

Now clone the git repository

sudo git clone /var/discourse

5. Install and configure Discourse for Ubuntu 22.04

First move to the directory we created and clone the directory.

cd /var/discourse

Start the scenario

Now run the script:

sudo ./discourse-setup

The installer will ask you to add the domain address you want to use with Discourse:

For instance:

After that, to send the mail, the user needs to set the SMTP server address of the mail server you want to use. It will ask you for the following:

SMTP server address -
SMTP user name -
SMTP port -
SMTP password -

You can consult the Official Speech page to troubleshoot e-mail issues. Therefore, make sure that the SMPT details are correct, otherwise you will not be able to use Discourse later.

configure Speech for Ubuntu 22.04

6. Access the web interface

Now open your browser which can access the domain name you registered for Discourse. After that, in the URL, point the browser to your speech domain.

For instance: Here we use-

7. Register an administrator account

Click on the Register Button to create an account to start using Discourse

Installing Speech on Ubuntu 22.04
Create a Discourse Account
Confirm Speech Email

8. Keep the upgrade speech

In the future, if you want to upgrade your installation, follow the given commands:

cd /var/discourse
sudo git pull
sudo ./launcher rebuild app


Is the Discourse forum free?

Yes, the Discourse Forum software is completely free and open source. Users do not have to pay for installing and using the software on their own hosting space.

What is Speech App?

Discourse is free and open-source Internet forum software. Features include support for chat categorization and tagging and configurable access control.

What is the difference between speech and discord?

Discourse is a free and open source software to create your own forum while Discord is a free VoIP and instant messaging social platform.

Other Items:

⇒ How to install Discourse on Debian 11 Bullseye server
⇒ How to install phpBB forum on Ubuntu 22.04 | 20.04 Server
⇒ How to install Flarum Forum software on Ubuntu 22.04 | 20.04
Install WordPress on Ubuntu 22.04 LTS Server

Comments are closed.