Instructions for installing Discourse

To install the Discourse forum, the system is required
64bit Linux OS compatible with Docker,
– Minimum 1GB RAM and 10GB disk space. Recommended VPS providers: Vultr, Digital Ocean and Linode …
– Use SMTP Server for Discourse to work properly. (Example: SMTP Server is used to send email notifications when there are new posts, when users subscribe, new updates …

Discourse forum installation

Note: Discourse is suitable for running on a separate server, so assume you are installing on a new server and will proceed step by step. If you want to run web wordpress // with common discourse on this server, you should also install Discourse first.

See the instructions for installing Discourse + WordPress

Step 1: Install Docker

1. Install Git

For CentOS:

yum -y install wget git

For Ubuntu

apt-get update
apt-get install git

2. Install, start up, and set up Docker to start up with the system

wget -qO- | sh
systemctl start docker
systemctl enable docker

Check Docker status

systemctl status docker

Successful results:

● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2019-10-24 06:50:55 UTC; 2 weeks 0 days ago
 Main PID: 26246 (dockerd)
    Tasks: 59
   Memory: 99.7M
   CGroup: /system.slice/docker.service
           ├─26246 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
           ├─26540 /usr/bin/docker-proxy -proto tcp -host-ip -host-port 443 -container-ip -container-port 443
           └─26555 /usr/bin/docker-proxy -proto tcp -host-ip -host-port 80 -container-ip -container-port 80

Step 2: Install Discourse

Create and save source code in /var /discourse directory:

mkdir /var/discourse
git clone /var/discourse

Install Discourse

Note: For systems with 2GB RAM or less and without Swap, Discourse will automatically create 2GB swap to ensure operation.

cd /var/discourse

Provide the necessary information:

If you use the service of, see the SMTP Settings section

Hostname for your Discourse? []:
Email address for admin account(s)? [,]:
SMTP server address? []:
SMTP port [587]: 587
SMTP user name? []: /*tên đăng nhập smpt*/
SMTP password? []: /* pass hoặc API */
Let’s Encrypt account email? (ENTER to skip) []: /*email xác thực ssl */

Then the process will automatically create the app.yml configuration file.

You can change the information, edit the configuration file: /var/discourse/containers/app.yml.

Then we will proceed to reconfigure the system:

cd /var/discourse
./launcher rebuild app

We will be happy to hear your thoughts

Leave a reply

Register New Account
Reset Password
Shopping cart