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: https://www.sparkpost.com/) 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- https://get.docker.com/ | 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
     Docs: https://docs.docker.com
 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 0.0.0.0 -host-port 443 -container-ip 172.19.0.3 -container-port 443
           └─26555 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 80 -container-ip 172.19.0.3 -container-port 80

Step 2: Install Discourse

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

mkdir /var/discourse
git clone https://github.com/discourse/discourse_docker.git /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
./discourse-setup

Provide the necessary information:

If you use the service of https://www.sparkpost.com/, see the SMTP Settings section

Hostname for your Discourse? [discourse.example.com]: datvnn.com
Email address for admin account(s)? [me@example.com,you@example.com]: support@datvnn.com
SMTP server address? [smtp.example.com]: smtp.sparkpostmail.com
SMTP port [587]: 587
SMTP user name? [user@example.com]: /*tên đăng nhập smpt*/
SMTP password? []: /* pass hoặc API */
Let’s Encrypt account email? (ENTER to skip) [me@example.com]: /*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

DATVNN.COM
Logo
Search
Generic filters
Exact matches only
Register New Account
Reset Password
Shopping cart