Discourse is not installed automatically: you run the official script on Ubuntu 24.04. Reliable email delivery needs an external SMTP service that you sign up for yourself.
Choose the resources of your VPS
Discourse runs on all our Linux VPS plans: you only pay for the VPS.
With your consent, we measure which ads bring us customers and how the site is used. Without it, nothing is measured and the site works exactly the same. You can change your mind at any time. Cookie policy.
Run your Discourse forum on an Ubuntu 24.04 VPS: the official script, domain, Let's Encrypt, SMTP email and updates explained step by step.
Discourse is open source forum software. The official script installs it in Docker on an Ubuntu 24.04 VPS: you run it yourself as root.
Step-by-step procedure
Order the VPS and connect
Order a VPS Mini with Ubuntu 24.04 LTS, then connect over SSH as root with your key. Update the system before starting the installation.
Point the forum domain
Create an A record, for example forum.your-domain.com, pointing to the VPS IPv4. Wait until DNS resolves: the wizard needs it to obtain the Let's Encrypt certificate.
Run the official script
The official Discourse script prepares the server and starts the setup wizard. Among other checks, it makes sure ports 80 and 443 are free.
Answer the wizard's questions
Enter the forum domain name, the administrator email and, if you have them, SMTP credentials. Without SMTP, the installer enables sign-in via Discourse ID and you can set up email later.
Create the admin and update
Open the forum domain to create the administrator account. For an update, or after editing app.yml, rebuild the container with the launcher.
Choose the resources of your VPS
Discourse runs on all our Linux VPS plans: you only pay for the VPS.
Recommended base: Ubuntu 24.04
VPS Mini: €3.99 per month incl. VAT with a 1-year term (or €4.99 per month with no commitment) · 2 vCPU · 8 GB RAM · 40 GB storage
VPS Essentiel: €7.99 per month incl. VAT with a 1-year term (or €9.99 per month with no commitment) · 4 vCPU · 16 GB RAM · 80 GB storage
VPS Performance: €17.59 per month incl. VAT with a 1-year term (or €21.99 per month with no commitment) · 8 vCPU · 48 GB RAM · 150 GB storage
VPS Pro: €27.99 per month incl. VAT with a 1-year term (or €34.99 per month with no commitment) · 12 vCPU · 64 GB RAM · 250 GB storage
Why run Discourse on a VPS?
Discourse is a modern open source forum: threads, notifications, moderation, trust levels, search and a web app that installs on phones. It works for a public community, customer support or a team space. The publisher sells a hosted plan, but the code is free to install on your own server.
The forum runs in a Docker container managed by the Discourse launcher tool. On a VPS, ports 80 and 443 are yours, you have the root access the installation requires and you are free to add plugins. Your community's posts and accounts stay on your machine, with no limits set by a hosted plan.
Ports 80 and 443 free
The Discourse installation wants ports 80 and 443 to itself. On a bare Ubuntu VPS nothing uses them, and the Let's Encrypt certificate is issued directly.
RAM reserved for the forum
Discourse runs PostgreSQL, Redis and Ruby in its container. The 8 GB of RAM on the VPS Mini are reserved for them, with no neighbour eating the memory.
DDoS protection included
A public forum also attracts attacks. The DDoS protection on every VPS filters abusive network traffic before it reaches your community.
Backups before rebuilds
An update goes through a container rebuild. Start a VPS backup from the panel right before, on top of Discourse's own internal backups.
Before you start
Good to know: Discourse is not installed automatically: you run the official script on Ubuntu 24.04. Reliable email delivery needs an external SMTP service that you sign up for yourself.
System: Ubuntu 24.04 LTS, root SSH access
1 GB of RAM minimum with swap, 2 GB recommended by the Discourse docs
10 GB of disk minimum, 20 GB recommended
A domain or subdomain with an A record pointing to the VPS
Ports 80 and 443 free
An external SMTP service recommended for forum email
Install Discourse on your VPS
The main steps, to follow over SSH. The official documentation is the reference for the details.
Order the VPS and connect: Order a VPS Mini with Ubuntu 24.04 LTS, then connect over SSH as root with your key. Update the system before starting the installation.
Point the forum domain: Create an A record, for example forum.your-domain.com, pointing to the VPS IPv4. Wait until DNS resolves: the wizard needs it to obtain the Let's Encrypt certificate.
Run the official script: The official Discourse script prepares the server and starts the setup wizard. Among other checks, it makes sure ports 80 and 443 are free.
Answer the wizard's questions: Enter the forum domain name, the administrator email and, if you have them, SMTP credentials. Without SMTP, the installer enables sign-in via Discourse ID and you can set up email later.
Create the admin and update: Open the forum domain to create the administrator account. For an update, or after editing app.yml, rebuild the container with the launcher.
For which projects?
Public online community
Customer support forum
Team discussion space
Game or server forum
The essentials, included in every plan
No hidden extras for the essentials: protection, an IP address, a recovery console and support from real people are included from the first plan.
Anti-DDoS: Network protection is included on every service, with no paid option.
Dedicated IPv4: Each VPS has its own public address and full root access.
Recovery console: Take back control of your VPS with the noVNC console, even without SSH.
Support 7 days a week: By ticket and on Discord, from a team that knows your services.
No commitment: Monthly, cancellable at any time, or yearly to pay less.
Run Discourse on your own VPS.
Choose your resources, install, stay in control. No commitment.
Frequently asked questions
How do I install Discourse on a VPS?
Order a VPS running Ubuntu 24.04, point a domain at its IPv4, connect as root and run the official install-discourse script. The wizard asks for the domain, the administrator email and optionally SMTP, then builds the Docker container and obtains the Let's Encrypt certificate.
How much RAM does Discourse need?
The official documentation lists 1 GB minimum with swap and 2 GB recommended, with at least 10 GB of disk. The VPS Mini, with 2 vCPUs, 8 GB of RAM and 40 GB of storage, leaves room for a growing community and for container rebuilds.
Is Discourse free?
Yes, the Discourse software is open source under the GPL and free to self-host. The publisher also sells paid hosting, which you do not need on your VPS. Just plan an external SMTP service if you want reliable email for sign-ups, notifications and digests.
Why does Discourse need ports 80 and 443?
The Discourse container includes its own web server and handles the Let's Encrypt certificate itself. The wizard checks that both ports are free. If Nginx or Apache already runs on the VPS, stop it, or put Discourse behind a reverse proxy by following the official documentation.
How do I update Discourse?
Minor updates can be done from the forum admin area. For a full update, connect as root, go to /var/discourse and run ./launcher rebuild app. The forum is unavailable during the rebuild, so take a VPS backup first.