Redmine備忘録
Docker-compose.ymlサンプル
version: "3.1"
services:
redmine:
image: redmine:4.1-bullseye
# image: redmine:4.2.8-bullseye
restart: always
ports:
- 8080:3000
environment:
REDMINE_DB_POSTGRES: redmine-db
REDMINE_DB_DATABASE: redmine
REDMINE_DB_USERNAME: redmine_user
REDMINE_DB_PASSWORD: redmine_passwd
REDMINE_SECRET_KEY_BASE: supersecretkey
REDMINE_DB_PORT: 5432
volumes:
- ./redmine/files:/usr/src/redmine/files
- ./redmine/log:/usr/src/redmine/log
- ./redmine/plugins:/usr/src/redmine/plugins
- ./redmine/public/themes:/usr/src/redmine/public/themes
redmine-db:
image: postgres:14.5-bullseye
restart: always
ports:
- 5432:5432
environment:
POSTGRES_DB: redmine
POSTGRES_USER: redmine_user
POSTGRES_PASSWORD: redmine_passwd
volumes:
- vol_redmine_db:/var/lib/postgresql/data
volumes:
vol_redmine:
vol_redmine_db:
PostgreSQLポート変更する場合コンテナ内の
データベース設定ファイル編集
/usr/src/redmine/config/database.yml
# database.yml
production:
adapter: postgresql
host: 192.168.10.146
port: 5444
username: "redmine_user"
password: "redmine_password"
database: "redmine"
encoding: "utf8"
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
timeout: 5000
DockerfileでDatabase.ymlをredmine:4.1-bullseye内の指定パスにコピーしたイメージ作成
# Dockerfile
FROM redmine:4.1-bullseye
COPY database.yml /usr/src/redmine/config/
以下のコマンドでオリジナルの名称のイメージファイル作成
docker image build -t redmine:4.1-origin .
プラグインによってはDBマイグレーションを行う以下Easy Ganttの場合
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
データベース移行が完了したら、Redmine を再起動してください。プラグインが有効になります。
おすすめプラグイン
Redmine draw.io - Plugins - Redmine
恐らく配置するだけ
git clone https://github.com/mikitex70/redmine_drawio.git
Lightbox Plugin 2 - Plugins - Redmine
git clone https://github.com/paginagmbh/redmine_lightbox2.git
rake redmine:plugins:migrate RAILS_ENV=production
Work Time - Plugins - Redmine
pluginフォルダ名を「redmine_work_time」
git clone https://github.com/tkusukawa/redmine_work_time.git
RAILS_ENV=production bundle exec rake redmine:plugins:migrate
EVM Calculation Plugin - Plugins - Redmine
https://github.com/momibun926/redmine_issue_evm/tree/redmine4.0
git clone https://github.com/momibun926/redmine_issue_evm.git
rake redmine:plugins:migrate NAME=redmine_issue_evm RAILS_ENV=production
Stopwatch - Plugins - Redmine
https://github.com/jkraemer/stopwatch
配置するだけ
git clone https://github.com/jkraemer/stopwatch.git
Dashboard - Plugins - Redmine
https://github.com/akpaevj/Dashboard
配置するだけ
git clone https://github.com/akpaevj/dashboard.git
Redmine Preview Inline - Plugins - Redmine
配置するだけ
git clone https://github.com/HugoHasenbein/redmine_preview_inline.git
https://github.com/fraoustin/redmine_indicator
redmine_indicator - Plugins - Redmine
git clone https://github.com/fraoustin/redmine_indicator.git
rake redmine:plugins:migrate NAME=redmine_indicator
Redmine https通信を実現する方法
足りない設定が一つあるnginx.confのlocationの所に以下追加
proxy_set_header X-Forwarded-Proto $scheme;
よろしければサポートお願いします😚