Close Menu
GeekBlog

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    GTA 6 Leads The Game Awards 2026 Nominations With 8 Nods Before It Even Launches

    November 18, 2026

    An Apple Watch Alert Caught One Owner’s 200/110 Blood Pressure. Here’s How Often It Misses.

    November 18, 2026

    Garmin Vivoactive 5 Review: Is It Still Worth Buying in 2026?

    November 18, 2026
    Facebook
    GeekBlog
    • Home
    • Mobile
    • Tech News
    • Blog
    • Gaming
    • Smartwatch
    • How-To Guides
    • AI & Software
    Facebook
    GeekBlog
    Home»Blog»Install Discourse on DigitalOcean: Full 2026 Tutorial
    Blog

    Install Discourse on DigitalOcean: Full 2026 Tutorial

    Ethan CaldwellBy Ethan CaldwellSeptember 4, 20269 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link
    Engineer using a laptop while monitoring servers
    Photo via Pexels
    Share
    Facebook Twitter LinkedIn Pinterest Email Copy Link

    To install Discourse on DigitalOcean, create an Ubuntu LTS droplet with at least 2 GB of RAM, point a DNS A record at it, then run the official installer script over SSH and answer the wizard prompts. The whole thing takes roughly ten minutes of your attention plus five to ten minutes of build time. Discourse only supports the Docker based install, so do not go looking for a Rails deployment guide; the container is the supported path and the one that gets upgrades.

    Quick answer: Spin up a 2 GB Basic Droplet ($12 per month) running Ubuntu LTS, add an A record for forum.example.com, SSH in as root, and run wget -qO- https://raw.githubusercontent.com/discourse/discourse_docker/main/install-discourse | sudo bash. The wizard asks for admin emails, your hostname and optional SMTP, then builds the container. Let’s Encrypt certificates are provisioned automatically. Upgrade later with cd /var/discourse && ./launcher rebuild app.

    This tutorial covers droplet sizing and swap, DNS, both the scripted and the manual install paths, what changed about the SMTP requirement, and the upgrade and backup commands you will actually use in production.

    Sizing the droplet

    The official cloud install guide lists 1 GB of RAM with swap as the minimum and 2 GB or more as recommended, with 1 core minimum and 2 or more preferred, plus 10 GB of disk minimum and 20 GB recommended. On DigitalOcean that maps cleanly onto the Basic Droplet range.

    DropletSpecsPriceVerdict for Discourse
    Basic 1 GB1 GB RAM, 1 vCPU, 25 GB SSD$6 per monthWorks only with 2 GB of swap, slow rebuilds
    Basic 2 GB2 GB RAM, 1 vCPU, 50 GB SSD$12 per monthThe sensible starting point
    Basic 4 GB4 GB RAM, 2 vCPU, 80 GB SSD$24 per monthComfortable for an active community
    Any sizeAdd block storage laterPer GB per monthUseful once uploads grow

    Pick a region close to your members, not close to you. Latency on a forum is felt in every page load. Enable backups on the droplet during creation if you want a provider level safety net in addition to Discourse’s own backup system. If you have provisioned other services on a droplet before, the workflow will be familiar from our guides to installing Node.js on cloud hosting and installing Minikube on Ubuntu.

    Note: The installer detects your hardware and tunes UNICORN_WORKERS and db_shared_buffers automatically. If you resize the droplet later, rebuild the container so those values are recalculated for the new size.

    DNS and firewall before you start

    Create the DNS record before running the installer, because the wizard verifies that your hostname resolves to the droplet and will stop if it does not. In the DigitalOcean control panel go to Networking, then Domains, add your domain, and create an A record for the subdomain you want pointing at the droplet’s public IPv4 address.

    Discourse needs ports 80 and 443 free. If you enabled a cloud firewall or turned on UFW, allow those plus SSH.

    sudo ufw allow OpenSSH
    sudo ufw allow 80/tcp
    sudo ufw allow 443/tcp
    sudo ufw enable
    sudo ufw status verbose

    Also confirm nothing else is bound to those ports. A droplet created from a LAMP or Nginx marketplace image already has a web server running, which will collide with the Discourse container.

    Recommended for you:

    Can You Use Movie Clips in YouTube Videos? What the Law Actually Says
    Blog·Sep 3, 2026

    Can You Use Movie Clips in YouTube Videos? What the Law Actually Says

    sudo lsof -i :80
    sudo systemctl stop nginx apache2 2>/dev/null
    sudo systemctl disable nginx apache2 2>/dev/null

    Add swap first on a small droplet

    The container build is memory hungry. On a 1 GB droplet it will be killed halfway through without swap, and the failure message is unhelpfully vague. The installer offers to create swap on low memory servers, but doing it yourself first is one less thing to go wrong.

    sudo fallocate -l 2G /swapfile
    sudo chmod 600 /swapfile
    sudo mkswap /swapfile
    sudo swapon /swapfile
    echo '/swapfile swap swap defaults 0 0' | sudo tee -a /etc/fstab
    free -h

    The scripted install

    This is the supported path and the one the project recommends. SSH into the droplet as root and run one command. It installs Docker and git if they are missing, downloads the Discourse Docker configuration and launches an interactive wizard.

    ssh root@your-droplet-ip
    wget -qO- https://raw.githubusercontent.com/discourse/discourse_docker/main/install-discourse | sudo bash

    The wizard asks for three things. Admin email addresses, which become the accounts with administrator rights when they register. Your hostname, either your own domain or a free discourse.diy subdomain claimed through Discourse ID. And SMTP settings, which are now optional: skip them and the installer enables login through Discourse ID with Google, Facebook, Apple and GitHub social logins instead.

    After you confirm, the container builds. Expect five to ten minutes on a 2 GB droplet, longer on 1 GB. SSL through Let’s Encrypt is provisioned automatically, so there is no separate certbot step.

    Tip: Even if you skip SMTP at install time, configure a transactional mail provider soon after. Digest emails, mailing list mode and reply by email all need it, and those are the features that keep a quiet forum alive.

    The manual install path

    If you prefer to see every step, or you are automating the build, clone the repository yourself and run the setup script directly. The result is identical to the scripted path.

    sudo apt update && sudo apt install -y git
    sudo git clone https://github.com/discourse/discourse_docker.git /var/discourse
    cd /var/discourse
    sudo ./discourse-setup

    The setup script writes /var/discourse/containers/app.yml, which is the single file that defines your forum: hostname, SMTP credentials, worker counts, plugins and environment variables. Editing it and rebuilding is how you change anything at the infrastructure level.

    sudo nano /var/discourse/containers/app.yml
    cd /var/discourse
    sudo ./launcher rebuild app

    The launcher script wraps Docker with the commands you need day to day: start, stop, restart, destroy, enter, logs, bootstrap, rebuild and cleanup. Full details live in the discourse_docker repository.

    Warning: ./launcher rebuild app destroys and recreates the container. Your data lives in /var/discourse/shared and survives, but the site is offline for the duration of the build. Schedule rebuilds outside peak hours and take a backup first.

    Upgrades, backups and routine operations

    Discourse ships upgrades through the admin interface for most releases. Visit https://your-forum/admin/upgrade and click Upgrade. When a release requires a container rebuild, or the web upgrade fails, drop to the command line.

    cd /var/discourse
    sudo ./launcher rebuild app

    Backups can be scheduled in Admin then Backups, with optional upload to S3 compatible object storage such as DigitalOcean Spaces. From the shell, the container exposes a CLI for the same job.

    cd /var/discourse
    sudo ./launcher enter app
    discourse backup
    discourse restore your-backup-file.tar.gz
    exit

    Two more things worth doing on day one. Turn on unattended security upgrades with dpkg-reconfigure -plow unattended-upgrades, and install fail2ban to blunt brute force attempts against SSH. Neither takes more than a minute and both are recommended in the official guide. If you run monitoring alongside the forum, the approach in our guide to where to host Grafana pairs well with a droplet like this, and the walkthrough on installing Grafana on Hostinger covers the dashboard side.

    Troubleshooting the install

    The wizard fails DNS verification. Your A record has not propagated or points elsewhere. Check with dig +short forum.example.com from the droplet. You can bypass the check with --skip-connection-test, but fix the record properly before going live or Let’s Encrypt will fail too.

    Ports 80 or 443 already in use. Another web server is running. Run lsof -i :80, then stop and disable whatever answers. Marketplace images with a preinstalled stack are the usual cause.

    The build dies with no clear error. Out of memory. Add the 2 GB swap file shown above, or resize the droplet to 2 GB and rebuild. This is by far the most common failure on the cheapest instance.

    The site is up but no email arrives. Either SMTP was skipped, or the credentials in app.yml are wrong. Check ./launcher logs app for authentication errors, and confirm your provider allows the sending domain. Port 25 is blocked on many providers, so use 587 with authentication.

    Certificate provisioning fails. Let’s Encrypt has to reach the droplet on port 80. A cloud firewall rule or a DNS record pointing to the wrong IP will break the challenge. Fix the reachability, then rebuild.

    Frequently asked questions

    How much RAM does Discourse need on DigitalOcean?

    Recommended for you:

    Why Is Jack the Black Cat Squishmallow So Rare?
    Blog·Sep 3, 2026

    Why Is Jack the Black Cat Squishmallow So Rare?

    The documented minimum is 1 GB with swap, and 2 GB or more is recommended. In practice the $12 per month 2 GB Basic Droplet is the right starting point, because 1 GB makes every container rebuild slow and fragile even when it succeeds.

    Can I install Discourse without Docker?

    Not in any supported way. Discourse only ships a Docker based install for production, and the upgrade path assumes it. A manual Rails deployment is possible in theory but leaves you maintaining the entire stack yourself with no upstream help.

    Is SMTP still required to install Discourse?

    No. Current versions let you skip SMTP during setup and fall back to login through Discourse ID with social providers. You should still add a mail provider afterward, because digests, notifications by email and reply by email depend on it.

    How do I upgrade Discourse?

    Use the web upgrade page at /admin/upgrade for routine releases. When a rebuild is needed, run cd /var/discourse then ./launcher rebuild app. Take a backup first, and expect a few minutes of downtime while the container is recreated.

    Where does Discourse store its data?

    In /var/discourse/shared/standalone on the host, which is bind mounted into the container. That directory holds the PostgreSQL data, uploads, logs and backups, and it survives container rebuilds. Back it up alongside the application backups.

    The bottom line

    Installing Discourse on DigitalOcean is one of the smoother self hosted deployments available. Create a 2 GB droplet, point DNS at it, add swap, and run the installer. The container handles PostgreSQL, Redis, the Rails app and the certificate, so the parts you would normally assemble by hand are already assembled.

    What you are signing up for is maintenance rather than setup. Keep the container rebuilt on a regular cadence, verify that backups actually restore, and configure a real SMTP provider once traffic justifies it. Do those three things and a $12 droplet will comfortably run a community forum for years.

    About this article: GeekBlog covers U.S. technology news, AI, phones, smartwatches and gaming. Every story is written and checked under our Editorial Policy. Spotted a mistake or have a story tip? Contact our editors.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Telegram Email Copy Link
    Previous ArticleWhere to Host Caligrafy: A Practical 2026 Guide
    Next Article Installing Node.js on Cloud Hosting: 2026 Walkthrough
    Ethan Caldwell

      Ethan Caldwell is GeekBlog's resident Apple specialist, covering the entire Apple ecosystem: iPhone, iPad, Mac, Apple Watch, AirPods and the software that ties them together. A longtime iOS user and gadget collector, Ethan tracks Cupertino's every move, breaking down Apple keynotes, A- and M-series chip benchmarks, iOS feature updates and the rumor mill into clear, practical takes that help readers decide whether the latest Apple hardware is worth the upgrade.

      Related Posts

      10 Mins Read

      Google Ads Keyword Planner: How It Shows the Most Relevant Keywords

      11 Mins Read

      How to Use Remarketing Techniques for Better Conversions

      11 Mins Read

      How to Conduct A/B Testing for Marketing Campaigns

      10 Mins Read

      AMP for WP Plugin Vulnerability: What Was Fixed and What to Do

      11 Mins Read

      How to Create a Facebook Business Page in 2026

      11 Mins Read

      How to Convert GMT Time to Other Time Zones in C++

      Top Posts

      Every iPhone Camera Ranked in 2026 (Best to Worst)

      July 6, 2026375 Views

      Best Browser for Android in 2026: Top Picks Ranked

      July 7, 2026241 Views

      iPhone Battery Replacement Cost: Every Model, Apple vs Repair Shop

      October 6, 2026195 Views
      Stay In Touch
      • Facebook

      Subscribe to Updates

      Get the latest tech news from FooBar about tech, design and biz.

      Most Popular

      Apple Told Its Stores Not to Expect iPhone Duo Walk-Ins. Carriers Can Beat January by Weeks.

      October 20, 2026317 Views

      Apple Watch Black Friday 2026: Early Deals, Prices to Beat and When to Buy

      November 8, 2026247 Views

      One UI 9 Watch: Which Galaxy Watches Get Wear OS 7, and Who Gets Left Behind

      November 6, 2026159 Views
      Our Picks

      GTA 6 Leads The Game Awards 2026 Nominations With 8 Nods Before It Even Launches

      November 18, 2026

      An Apple Watch Alert Caught One Owner’s 200/110 Blood Pressure. Here’s How Often It Misses.

      November 18, 2026

      Garmin Vivoactive 5 Review: Is It Still Worth Buying in 2026?

      November 18, 2026

      Subscribe to Updates

      Get the latest creative news from FooBar about art, design and business.

      HEICJPG.online - Convert HEIC to JPG online
      Facebook
      • About GeekBlog: Our Mission, Team and Editorial Standards
      • Contact us
      • Privacy Policy
      • Disclaimer
      • Terms and Conditions
      • Editorial Policy
      • Cookie Policy
      • Your Privacy Choices
      © 2026 GeekBlog

      Type above and press Enter to search. Press Esc to cancel.