How To'sLinux

How To Install Discourse Forum With Docker on CentOS 8

In this tutorial, We’re going to install the Discourse forum using Docker on the CentOS server. Discourse is an open-source platform that is used for discussion forums, communities and etc. The backend is built on Ruby on Rails, and the frontend is based on Ember.js.

Let’s get started!

Requirements:

  • CentOS 8 Installed.
  • Setup CNAME and A record to Server IP.
  • Root Password.

Install Discourse Forum With Docker on CentOS 8

1. Install Docker

The first thing to do is install Docker on CentOS 8. We’ve written a complete tutorial on installing Docker on CentOS 7 & 8.

To verify which version of Docker you’re running follow this.

2. Install Discourse

Now, that you have installed Docker on your CentOS. It’s time to setup and installs discourse. First, create a directory here /opt/discourse and wget discourse repo here.

mkdir /opt/discourse

Now, we’re going to git clone the Discourse repository here:

git clone https://github.com/discourse/discourse_docker.git /opt/discourse

Now, navigate to that directory where you just git clone and we’re going to install Discourse.

./discourse-setup

Provide all the required details and press Enter. Now you need to verify all the setup as shown below:

Hostname      : hostname_here
Email         : your_email_here
SMTP address  : smpt_server_here
SMTP port     : 587
SMTP username : your_email_here
SMTP password : your_password_here
Let's Encrypt : your_email_here

ENTER to continue, 'n' to try again, Ctrl+C to exit:

After pressing Enter the installation will start and once it’s completed you can check the running container using.

docker ps

Once you see you’re running a container that means it’s successfully installed and ready to setup. Navigate to your hostname for the basic setup of discourse and you’re ready to go.

If you have any quires or questions feel free to comment down below.

Noor Qureshi

Experienced Founder with a demonstrated history of working in the computer software industry. Skilled in Network Security and Information Security.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button