App service
Services/Discourse (buildable)

Discourse (buildable) service

Discourse forum service that adds the plugins listed or committed in your Git repository, with linked PostgreSQL, Redis, and outbound email.

This service runs your code: its image is built from a Git repository, and each build is deployed to an app environment.

On Wodby

How Discourse (buildable) runs on Wodby

What Wodby sets up for a Discourse application on this service. Check it before adding database, Redis, mail or host settings to the site settings.

How the application is built and run

  • The service runs the prebuilt wodby/discourse image of the selected release line: 2026.10 (the monthly release) or 2026.7 (the extended support release). Each image holds one Discourse release on the official discourse/base web-only image, with its frontend and compressed assets. There is no repository and no build.
  • Plugins bundled with Discourse, such as chat, AI, solved, assign, reactions and voting, are available. Themes and theme components are installed from the administration interface. Other plugins need a custom build and are not supported.
  • One container runs nginx on port 80, Unicorn and Sidekiq. The service is not scalable.
  • On every start the container runs rake db:migrate while MIGRATE_ON_BOOT is 1, and rake themes:update assets:precompile:css maxminddb:refresh while PRECOMPILE_ON_BOOT is 1. Both are set to 1.
  • The health endpoint is /srv/status on port 80.

Generated configuration

On every start the container writes config/discourse.conf from the environment: each DISCOURSE_<NAME> variable becomes the <name> setting. The file is rewritten on start: never edit it. A site setting that has a variable of the same name takes its value from the variable and cannot be changed in the administration interface.

Linked services

LinkVariables
PostgreSQL (required)DISCOURSE_DB_HOST, DISCOURSE_DB_PORT, DISCOURSE_DB_NAME, DISCOURSE_DB_USERNAME, DISCOURSE_DB_PASSWORD
Redis (required)DISCOURSE_REDIS_HOST, DISCOURSE_REDIS_PORT, DISCOURSE_REDIS_PASSWORD
Mail transfer agent (required)DISCOURSE_SMTP_ADDRESS, DISCOURSE_SMTP_PORT

The container waits for the database and Redis ports before it starts. Mail goes to the linked mail service without authentication and with DISCOURSE_SMTP_ENABLE_START_TLS set to false. These connection values belong to the links: do not set them elsewhere.

Host and administrators

  • DISCOURSE_HOSTNAME and DISCOURSE_SMTP_DOMAIN are the environment's primary host. DISCOURSE_FORCE_HTTPS is true.
  • The setting "Administrator email addresses" sets DISCOURSE_DEVELOPER_EMAILS: an account registered with one of these addresses becomes an administrator. No administrator account is created otherwise.
  • The optional setting "Notification email address" sets DISCOURSE_NOTIFICATION_EMAIL.

Changing configuration

Set the two settings above on the service. Other upstream DISCOURSE_* settings are added as environment variables through the "Additional environment variables" integration. A change applies with the next deployment of the service.

Data, backups and upgrades

  • The data volume is mounted at /shared: uploads (/shared/uploads), backups (/shared/backups) and Rails logs (/shared/log/rails). public/uploads and public/backups in the application are links to it.
  • The declared backup runs Discourse's own backup (discourse backup), one tar.gz with the database and the uploads.
  • Discourse is upgraded by a newer image: a new revision of the same release line brings its patch releases, and a newer release line is a different version of the service. Do not upgrade from the administration interface or install docker_manager.

Check the result

  • curl -f http://127.0.0.1/srv/status inside the container.
  • discourse in the container runs script/discourse as the discourse user in production mode.

Buildable Discourse on Wodby

This service is the discourse service built from the app's repository: its guidance applies to settings, data, email, upgrades and limits. This page covers what differs.

Image

The image is built from the app's Git repository on top of the same wodby/discourse image the discourse service runs, so the service's versions are Discourse release lines. Start the repository from the Discourse boilerplate. The build adds:

  • the plugins listed in plugins.txt, one Git URL per line, optionally followed by a branch or tag, such as https://github.com/discourse/discourse-bbcode.git main. Each is cloned without its Git history;
  • the plugins committed under plugins/, one directory per plugin with its plugin.rb.

The build fails when a plugin has the name of a plugin that ships with Discourse (turn those on in Discourse's settings instead), when a directory has no plugin.rb, or when a repository can't be cloned. Discourse's own JavaScript comes from the image; the build installs the plugins' gems and compiles only their JavaScript. Without plugins nothing is rebuilt.

Discourse's version comes from the service version and the image revision, not from the repository: it moves forward with service updates. A plugin must support that release line; pin a plugin to a branch or tag that does, for example a plugin's stable branch for an ESR line.

Plugins

Discourse migrates the database on boot, plugins' migrations included, as on the discourse service. A plugin removed from the repository disappears from Discourse on the next deployment; its data stays in the database.

Overview

Technical profile of Discourse (buildable)

The versions are the ones you can select for Discourse (buildable) in a stack or an app environment. The service itself is published in revisions, and a stack references a specific revision.

Service type

App service

Versions

2026.10, 2026.7

Persistent volumes

Discourse shared data

Stacks

Stacks that include Discourse (buildable)

This public stack includes Discourse (buildable). You can create an app from a public stack as it is, or add the service to a stack of your own.

CI/CD

Build Discourse (buildable) from a Git repository

Start from a public boilerplate or connect your own repository. With Wodby CI, a push to the branch that an app environment follows starts a build of Discourse (buildable), and the pipeline deploys it.

Git providers

You connect a repository through an integration with its Git provider.

CI providers

Wodby CI is built in: the pipeline is the file .wodby/pipeline.yml in the repository. For a repository you connect, an external CI provider can run the same steps with Wodby CLI.

Container registries

Built images go to Wodby Registry by default, or to an external registry that you connect as an integration.

Environment variables from integrations

A variable integration stores the credentials of a third-party service once. Attach it to Discourse (buildable) and Wodby passes them to the container as environment variables at runtime, not during the image build.

Data

Backups for Discourse (buildable)

The Discourse (buildable) service defines how its data is backed up. You run a backup from the app environment that the service belongs to.

Manual and scheduled backups

Run a backup when you need one, or set a schedule in a backup preset.

Where archives are stored

Wodby writes each archive to Wodby Blob Storage or to a bucket at a storage provider that you connect as an integration.

Configuration

Discourse (buildable) service configuration

The Discourse (buildable) service declares the following. Where a value can be changed, a stack sets it and each app environment can override it.

Technical domains

Wodby gives each public HTTP port a technical domain with a TLS certificate and renews the certificate. A port that the service marks private gets no domain. You can add custom domains.

Volumes

Discourse shared data

Settings

2 settings that a stack or an app environment can change.

Service links

Each link is a connection from Discourse (buildable) to another service. A stack sets which service a link points to. The cards list the public services that can satisfy each link.

redis

Services that can satisfy this link