Deploy Discourse Community Forum

Discourse forum with Sidekiq jobs, PostgreSQL, Redis and a first admin

Deploy Discourse Community Forum

Data

Discourse Redis

redis:8.10.3-alpine

Just deployed

/data

Just deployed

/var/lib/postgresql

Discourse

/shared

Deploy and Host Discourse Community Forum on Railway

Discourse is the open-source discussion platform behind thousands of community, support and product forums. It has threaded topics and categories, real-time notifications, chat, moderation and trust levels, full-text search, single sign-on, an API and a large set of bundled plugins.

About Hosting Discourse Community Forum

The template runs Discourse 2026.11.0-latest.2 from upstream's official discourse/discourse image, unmodified and pinned by digest, with PostgreSQL 18 (with pgvector) and Redis 8 on Railway's private network. The Discourse service runs nginx and the app server plus one supervised Sidekiq process, as Discourse's standard install does. Sidekiq sends email, delivers notifications, processes posts and uploads and runs scheduled jobs. Uploads, backups and logs stay on a Railway volume. Set DISCOURSE_ADMIN_EMAIL before you deploy. The first administrator is created on the first boot with that email and a generated password, which you copy from the Discourse service's variables. No email is needed to sign in for the first time.

Discourse confirms new accounts by email, so public sign-ups need an SMTP provider. Railway allows outbound SMTP only on the Pro plan and above. Without it, an administrator can activate pending accounts by hand. Upstream still calls the standalone image experimental and supports only its own Docker host install.

Why Deploy Discourse Community Forum on Railway

Railway gives you an HTTPS domain, private networking between Discourse, PostgreSQL and Redis, persistent volumes, generated secrets and health-checked deploys, with no server to manage. Each deploy waits for the database and Redis and runs the migrations. It creates the first administrator before the forum answers, and the health check passes only once the app serves. Each visitor's own address reaches Discourse, so its per-visitor rate limits and login throttles work behind Railway's edge.

Common Use Cases

  • A community forum for an open-source project, a product or a hobby group
  • A customer support and knowledge-sharing site with searchable answers
  • A private discussion space for a team, a class or members only

Dependencies for Discourse Community Forum Hosting

The deployment uses Discourse (www.discourse.org, documentation), PostgreSQL with pgvector, and Redis.

Deployment Dependencies

  • Discourse 2026.11.0-latest.2 (nginx, Pitchfork and Sidekiq) from discourse/discourse, with a 5 GB volume
  • PostgreSQL 18 with pgvector, with a 5 GB volume
  • Redis 8, with a 5 GB volume
  • For public sign-ups, password resets and email notifications: an SMTP provider and a Railway Pro workspace

Discourse is a registered trademark of Civilized Discourse Construction Kit, Inc. This template is not affiliated with or endorsed by it.


Template Content

Discourse Redis

redis:8.10.3-alpine

More templates in this category

View Template
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
51
View Template
Foundry Virtual Tabletop
Self-hosted virtual tabletop for role-playing games (license required)

Lucas
71
View Template
NEW
Double Commander in your browser
The Double Commander file manager in the cloud, from any device

Nermin Sabanovic
0