Analytics cookies only (Google Analytics, PostHog). No ad networks, no cross-site tracking. See our privacy policy.
Community forum software built on Ruby on Rails, Ember.js, PostgreSQL and Redis, licensed GPL-2.0-or-later. Chat, polls, solved answers, reactions, assignments and an AI plugin ship in the core repository. The only officially supported install is Docker through the discourse_docker launcher, which builds one container from YAML templates; there is no Compose file.
Runs on a VPS from $6/mo (Kamatera 2GB, 2 GB RAM) · prices checked Nov 2026
Fits home hardware (958 MB measured idle, RAM only): Raspberry Pi 4 (4 GB) (arm64 untested), Raspberry Pi 5 (8 GB) (arm64 untested), Repurposed laptop (8 GB), Intel N100 mini PC (16 GB), AMD Ryzen mini PC (32 GB).
Pick Discourse when you want a complete community forum on day one: categories and tags, chat, polls, solved answers, reactions, assignments, topic voting, a Data Explorer for SQL reports and the Discourse AI plugin all live in its core repository, alongside official and community themes, email digests, mailing-list mode and reply-by-email. It is a Ruby on Rails app with an Ember.js front end, PostgreSQL and Redis, licensed GPL-2.0-or-later. The one officially supported install is Docker through upstream's `install-discourse` script and `discourse_docker` launcher, which builds everything into a single container with Let's Encrypt; upstream's floor is 1 GB of RAM with swap, 2 GB or more recommended. If you want a small MIT-licensed forum on PHP hosting you already run, Flarum is the catalog's other forum.
Follow the Discourse deploy guide →Paid link — we earn a commission if you shop through it.
Run these commands on your server:
# Discourse — the official discourse_docker launcher (the only officially supported install), its setup wizard's steps written out, per our Discourse deploy guide
# needs a 64-bit Linux server, 2 GB+ RAM for the build, ports 80/443 free and a hostname pointed at it (Discourse will not run on a bare IP)
command -v docker >/dev/null || curl -fsSL https://get.docker.com | sudo sh
DOMAIN=forum.example.com
ADMIN_EMAIL=admin@example.com
sudo git clone --depth 1 https://github.com/discourse/discourse_docker.git /var/discourse
cd /var/discourse
sudo cp samples/standalone.yml containers/app.yml
sudo sed -i \
-e "s|^ DISCOURSE_HOSTNAME:.*| DISCOURSE_HOSTNAME: \"$DOMAIN\"|" \
-e "s|^ DISCOURSE_DEVELOPER_EMAILS:.*| DISCOURSE_DEVELOPER_EMAILS: \"$ADMIN_EMAIL\"|" \
-e 's|^ #- "templates/web.ssl.template.yml"| - "templates/web.ssl.template.yml"|' \
-e 's|^ #- "templates/web.letsencrypt.ssl.template.yml"| - "templates/web.letsencrypt.ssl.template.yml"|' \
containers/app.yml
sudo chmod 600 containers/app.yml
# put your SMTP provider in the DISCOURSE_SMTP_* lines of containers/app.yml; to build before mail is set up,
# uncomment DISCOURSE_SKIP_EMAIL_SETUP (without either, the build aborts with "Mail is not configured"):
sudo sed -i 's|^ #DISCOURSE_SKIP_EMAIL_SETUP:| DISCOURSE_SKIP_EMAIL_SETUP:|' containers/app.yml
# builds the image (about 10 minutes) and provisions Let's Encrypt, then starts the forum on https://DOMAIN
sudo ./launcher bootstrap app
sudo ./launcher start app
# wait until the forum answers over HTTPS (Redis and Postgres inside the container come up first):
for i in $(seq 1 90); do curl -sf -o /dev/null "https://$DOMAIN/srv/status" && break; sleep 5; done
# with no mail, create the first admin from the command line (it prompts for email, password, password, Y):
ADMIN_PASSWORD=$(openssl rand -hex 12)
sudo docker exec -i app su discourse -c "cd /var/www/discourse && RAILS_ENV=production bundle exec rake admin:create" <<EOF
$ADMIN_EMAIL
$ADMIN_PASSWORD
$ADMIN_PASSWORD
Y
EOF
echo "admin password: $ADMIN_PASSWORD"
# later changes: edit /var/discourse/containers/app.yml, then cd /var/discourse && sudo ./launcher rebuild appDiscourse's install guide is explicit about what it expects from the server and from you:
The batteries-included Docker forum vs. the small PHP forum built from extensions.
A Node.js forum from a Compose file with ActivityPub in the core, or the Rails forum that ships everything in one container.
Discourse used 958 MB of RAM at idle on GCP e2-standard-2 · Ubuntu 26.04 LTS · Docker 29.9.3 (first boot, measured Nov 2026). We list a minimum of 1024 MB.
The Discourse install snippet is marked verified on Ubuntu 26.04 (Nov 2026).