Тип сервиса
Сервис Redmine
Самостоятельно размещаемый сервис управления проектами и учёта задач Redmine со связанной базой данных PostgreSQL, общим хранилищем вложений, позволяющим запускать несколько реплик, и необязательной исходящей почтой.
Вы добавляете этот сервис в стек и выбираете там его версию и ресурсы. Каждое окружение может их переопределить.
В StackMaster
Как Redmine работает в StackMaster
Image
The service runs the prebuilt wodby/redmine image, with nothing built for it: Redmine's official image (Debian, Ruby, Redmine and its gems) with precompiled assets, running Puma as the wodby user (uid 1000).
Plugins and themes need an image of their own built FROM wodby/redmine:<version>, with plugins copied to /usr/src/redmine/plugins and themes to /usr/src/redmine/themes (plus bundle install for plugins with gems). Use it from a custom service based on this one. The install action runs the plugins' migrations.
Configuration
config/database.yml and config/configuration.yml read environment variables when Redmine starts; everything else is set in Redmine under Administration › Settings.
- Database. PostgreSQL from the
dblink:DB_HOST,DB_PORT,DB_NAME,DB_USER,DB_PASSWORD. When the linked server has a CA certificate (DB_SSL_CA), Redmine connects withverify-fullTLS. - Attachments.
/mnt/files, thefilesvolume shared by every replica through the linked storage service. - Processes. Puma runs
workersprocesses (setting, default 2) with 5 threads each (RAILS_MAX_THREADS) on port 3000. Redmine serves its own stylesheets and scripts./-/healthanswers without the database. - Sessions.
SECRET_KEY_BASEis a generated token; changing it signs everybody out. The "Stay logged in" cookie is sent over HTTPS only. - Email. With a mail server linked as
sendmail,SMTP_HOSTandSMTP_PORTbecome Redmine's SMTP server, without STARTTLS. Without one Redmine sends no email; setSMTP_*variables for another server (see the wodby/redmine README). Emails are sent during the request that causes them (REDMINE_QUEUE_ADAPTER=inline), so a restart never loses one; a failed delivery is logged and the request still succeeds.
Installation and upgrades
On every deployment the Install or upgrade Redmine action (redmine-update) runs the core and plugin migrations in a job of the new version, before its pods are replaced; on the first deployment, right after the install. If it fails, the deployment stops before the rollout, and the previous version keeps serving on the migrated database until the new one is ready. Then:
- First deployment: loads Redmine's default trackers, statuses, roles and workflows in the
languagesetting (defaulten), and replaces Redmine's stockadmin/adminaccount with theadmin-login(defaultadmin),admin-password(required) andadmin-emailsettings in the same process, so the stock password never works. Redmine's host name and protocol are set to the app's main address (WODBY_PRIMARY_URL, passed withrouteMetadata) and the email sender tonoreply@that host. - Without an admin password, or with one Redmine refuses (shorter than 8 characters), the stock account is locked and the action fails.
- Later deployments: only the migrations, for example after a new image. The host name and the sender are not set again once they are stored, and changing the admin settings does not change the account; change them in Redmine.
Redmine has no background workers or scheduled jobs on this service. Redmine's own rake tasks, such as redmine:send_reminders or redmine:email:receive_imap, can be added as cron jobs: bin/rake redmine:send_reminders.
Limits
- PostgreSQL only.
- Plugins and themes need an image built on
wodby/redmine. - Repositories (Git, Subversion) work only with paths inside the container; there is no shared repository volume.
- No development workspace.
Check the result
curl -s localhost:3000/-/healthin the container returnsOK.- The deployment's log shows lines starting with
[redmine-update]. bin/rails consoleopens a Rails console in/usr/src/redmine.
Обзор
Технический профиль Redmine
Версии
Репозиторий исходного кода
Публичный Helm-чарт
Постоянные тома
Стеки
Стеки, в которые входит Redmine
Конфигурация
Конфигурация сервиса Redmine
Технические домены
Тома
Настройки
Действия
Связи сервиса
Каждая связь — это подключение Redmine к другому сервису. На какой сервис указывает связь, задаёт стек. На карточках перечислены публичные сервисы, которые подходят для каждой связи.
db
Сервисы, которые подходят для этой связи
files
Сервисы, которые подходят для этой связи
sendmail
Сервисы, которые подходят для этой связи