I just converted my site to Discourse!

yum update
yum groupinstall “Development Tools”
yum install git wget

On your CentOS machine install Docker. Redirecting…

Clone the Discourse repo:

mkdir /var/discourse
git clone https://github.com/discourse/discourse_docker.git /var/discourse
cd /var/discourse
cp samples/standalone.yml containers/app.yml
vi containers/app.yml

Set the ports to 8081:80 and 2222:22 for your first instance. Configure all other Discourse app settings and write, quit by typing :wq!

./launcher bootstrap app
./launcher start app

Multiple instances can be added later, follow a conventional numbering scheme for your ports and you will be able to effectively serve Discourse virtual hosts through Virtualmin proxy hosts.

Install Virtualmin GPL:

wget http://software.virtualmin.com/gpl/scripts/install.sh
chmod +x install.sh
./install.sh

Wait for this to finish, then log into your Virtualmin site https://your-host.com:10000/ login root / pw [your-root-pw]

Create a new virtual server with the domain name you have pointed at your server (discourse.locl.ca for me). Click on the Server Configuration menu (image 1) and choose the Edit Proxy Website link. Point the proxy from Virtualmin to the Discourse url that you configured when you bootstrapped your instance.

Rinse, repeat for additional domains pointing at your server.

2 Me gusta