3
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

お試しredmineをdockerで

3
Last updated at Posted at 2021-07-03

新しいプラグインを試すとかいろいろしたいのに rbenvいれて mysqlいれて云々とかとてもめんどくさいので、dockerでお気楽に試す環境を作る。

docker-compose.yml

version: '3'

services:
    redmine:
        image: redmine
        restart: always
        ports:
            - 8080:3000
        environment:
            REDMINE_DB_POSTGRES: db
            REDMINE_DB_PASSWORD: example
            REDMINE_SECRET_KEY_BASE: supersecretkey
            REDMINE_PLUGINS_MIGRATE: 1
    db:
        image: postgres:latest
        restart: always
        environment:
            POSTGRES_PASSWORD: example

起動

# docker compose up -d

プラグイン

`/usr/src/redmine/plugins' にインストールする

例えば予定実績レポートだと

コマンド

# cd /usr/src/redmine/plugins
#  git clone https://github.com/toritori0318/redmine_estimate_timelog.git
#  bundle exec rake redmine:plugins:migrate RAILS_ENV=production

コンテナ再起動

$ docker compose stop
$ docker compose start

この時に docker cmpose down するとデータなくなるので注意

編集リクエストがありましたが、旧バージョンでは docker-compose だったけど、現行(少なくとも4.0以降)ではサブコマンド化されてて docker compose となっています

確認

http://localhost:8080 にブラウザでアクセスすると確認できる。
初期ユーザーは admin/admin

3
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?