Тип сервиса
Сервис Discourse (buildable)
Форум Discourse с плагинами, перечисленными или закоммиченными в вашем Git-репозитории, со связанными PostgreSQL, Redis и исходящей почтой.
Этот сервис запускает ваш код: его образ собирается из Git-репозитория, а каждая сборка развёртывается в окружение.
На этой странице
Технический профиль
Версии, репозиторий исходного кода и Helm-чарт.
Стеки с этим сервисом
Публичные стеки, в которые входит этот сервис.
Сборка из исходного кода и CI/CD
Шаблоны проектов, Git-провайдеры, CI и реестры контейнеров.
Резервные копии
Как выполняется резервное копирование и где хранятся архивы.
Конфигурация сервиса
Тома, настройки и связи с другими сервисами.
В StackMaster
Как Discourse (buildable) работает в StackMaster
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) or2026.7(the extended support release). Each image holds one Discourse release on the officialdiscourse/baseweb-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:migratewhileMIGRATE_ON_BOOTis1, andrake themes:update assets:precompile:css maxminddb:refreshwhilePRECOMPILE_ON_BOOTis1. Both are set to1. - The health endpoint is
/srv/statuson 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
| Link | Variables |
|---|---|
| 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_HOSTNAMEandDISCOURSE_SMTP_DOMAINare the environment's primary host.DISCOURSE_FORCE_HTTPSistrue.- 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
datavolume is mounted at/shared: uploads (/shared/uploads), backups (/shared/backups) and Rails logs (/shared/log/rails).public/uploadsandpublic/backupsin the application are links to it. - The declared backup runs Discourse's own backup (
discourse backup), onetar.gzwith 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/statusinside the container.discoursein the container runsscript/discourseas thediscourseuser 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 ashttps://github.com/discourse/discourse-bbcode.git main. Each is cloned without its Git history; - the plugins committed under
plugins/, one directory per plugin with itsplugin.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.
Обзор
Технический профиль Discourse (buildable)
Версии
Основан на
Репозиторий исходного кода
Публичный Helm-чарт
Постоянные тома
Стеки
Стеки, в которые входит Discourse (buildable)
CI/CD
Сборка Discourse (buildable) из Git-репозитория
Vanilla Discourse
Используйте его как есть или клонируйте в свой Git-аккаунт.
wodby/discourse-boilerplateCI-провайдеры
StackMaster CI встроен в платформу: пайплайн описывается в файле .wodby/pipeline.yml в репозитории. Для подключённого репозитория те же шаги может выполнять внешний CI-провайдер с помощью StackMaster CLI.
Реестры контейнеров
Собранные образы по умолчанию попадают в StackMaster Registry или во внешний реестр, подключённый как интеграция.
Переменные окружения из интеграций
Интеграция с переменными один раз сохраняет учётные данные стороннего сервиса. Подключите её к Discourse (buildable), и StackMaster передаст их в контейнер как переменные окружения во время работы, а не при сборке образа.
Данные
Резервные копии: Discourse (buildable)
Резервные копии вручную и по расписанию
Создавайте резервную копию, когда она нужна, или задайте расписание в пресете резервного копирования.
Где хранятся архивы
StackMaster записывает каждый архив в StackMaster Blob Storage или в бакет у провайдера хранилища, подключённого как интеграция.
Конфигурация
Конфигурация сервиса Discourse (buildable)
Технические домены
Тома
Настройки
Связи сервиса
Каждая связь — это подключение Discourse (buildable) к другому сервису. На какой сервис указывает связь, задаёт стек. На карточках перечислены публичные сервисы, которые подходят для каждой связи.
db
Сервисы, которые подходят для этой связи
redis
Сервисы, которые подходят для этой связи
sendmail
Сервисы, которые подходят для этой связи