Hi,
I do these steps:
Step 1: add Droplet to Cloudflare
Here is tutorials (just in case you don’t know how to add Droplet to Cloudflare and Domain) https://www.youtube.com/watch?v=iWaFAIRWsA4
Step 2: Make Swap Files
Then Configure Local time
dpkg-reconfigure tzdata
Step 3: Install Discourse
sudo -s
mkdir /var/discourse
git clone https://github.com/discourse/discourse_docker.git /var/discourse
cd /var/discourse
I customize Default Email and Edit app.yml (You can Skip this and install Discourse as normal)
Copy the samples/standalone.yml file into the containers folder as app.yml:
sudo cp samples/standalone.yml containers/app.yml
sudo nano containers/app.yml
Change these line
DISCOURSE_HOSTNAME: 'domain.com'
DISCOURSE_DEVELOPER_EMAILS: 'me@example.com'
DISCOURSE_SMTP_ADDRESS: smtp.mandrillapp.com # (mandatory)
DISCOURSE_SMTP_PORT: 587 # (optional)
DISCOURSE_SMTP_USER_NAME: login@example.com # (optional)
DISCOURSE_SMTP_PASSWORD: pas$word # (optional)
Uncoment and Edit custom default Email on this line
- exec: rails r "SiteSetting.notification_email='example@domain.com'"
–>>>> Save the app.yml file, and exit the text editor.
Bootstrap Discourse:
sudo ./launcher bootstrap app
After the bootstrap process completes, start Discourse:
sudo ./launcher start app
After Start Discourse,
Access to your website: domain.com
Install Discouse Wizard
Step 4: start to install Let’s Encrypt
cd /var/discourse
sudo nano containers/app.yml
Uncomment and change these line
Add Email Let’s Encrypt

Then Rebuild Discourse App
/var/discourse/launcher rebuild app
After Rebuild App,
access to CloudFlare to enable SSL Full strict
Yes!, It’s Done!

