[DOCKER] Redmine (Scrum, Agile plug-in) environment construction memorandum

I had the opportunity to create a Redmine environment, so make a note

--Using Docker --Use Let ’s Encrypt (https-portal) for https conversion --Redmine version is the latest version (4.1.1) --Using MySQL

docker-compose (Please set password and domain name as appropriate)

docker-compose.yml


version: '3'
services:
  redmine:
    image: redmine:4.1.1
    restart: always
    container_name: redmine_container
    environment:
      REDMINE_DB_MYSQL: mysql
      REDMINE_DB_DATABASE: redmine
      REDMINE_DB_USERNAME: redmine
      REDMINE_DB_PASSWORD: redmine
      REDMINE_DB_ENCODING: utf8mb4
      VIRTUAL_HOST: <Domain name you want to set>
    expose:
      - 3000
    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
    depends_on:
      - mysql
  mysql:
    image: mysql:5.7
    container_name: mysql
    restart: always
    environment:
      TZ: Asia/Tokyo
      MYSQL_ROOT_PASSWORD: redmine
      MYSQL_DATABASE: redmine
      MYSQL_USER: redmine
      MYSQL_PASSWORD: redmine
    volumes:
      - ./mysql-data:/var/lib/mysql
    command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
  https-portal:
    image: steveltn/https-portal:latest
    ports:
      - '80:80'
      - '443:443'
    links:
      - redmine
    restart: always
    environment:
      DOMAINS: '<Domain name you want to set> -> http://redmine_container:3000'
      STAGE: 'production'
      #FORCE_RENEW: 'true'
    volumes:
      - ./certs:/var/lib/https-portal

What is https-portal? ??

--You can easily set the acquisition of SSL certificate using Let ’s Encrypt.

STAGE --production ... go get an SSL certificate --local ... Set my certificate

FORCE_RENEW --Basically not used --Forcibly issue a certificate --Note that Let ’s Encrypt has restrictions.

volumes --Set / var / lib / https-portal on the volume to persist the certificate

Install Scrum Redmine plugin

1. Store the plugin in the Redmine plugin directory

--The sample docker-compose.yml plugin directory is ./redmine/plugins

2. Enter the Redmine container and execute the following command

$ RAILS_ENV=production bundle exec rake redmine:plugins:migrate

3. Plugin settings on Redmine

--Refer to the following article for setting examples -De-BackLogs Scrum Development (Ubuntu18.04 + sameersbn / Redmine3.4.6 + Scrum)

reference

--Official installation procedure - redmine-plugin-scrum wiki

Install Redmine Agile plugin (Light version)

1. Download the free Light plan from the official website

2. Store the plugin in the Redmine plugin directory

--The sample docker-compose.yml plugin directory is ./redmine/plugins

3. Enter the Redmine container and execute the following command

$ bundle install --without development test --no-deployment
$ bundle exec rake redmine:plugins NAME=redmine_agile RAILS_ENV=production

reference

--Official installation procedure - Installing Agile plugin on Linux

When the installation is complete, the Redmine plugin page will be displayed.

image.png

Recommended Posts

Redmine (Scrum, Agile plug-in) environment construction memorandum
Redmine (Docker) environment construction memo
[Java] Environment construction
Java environment construction
[Spring] Environment construction
Docker environment construction
Django development environment construction using Docker-compose (personal memorandum)
Construction of data analysis environment using Docker (personal memorandum)
Penronse environment construction [Windows]
[Environment construction] Eclipse installation
Rails Docker environment construction
Circle CI environment construction
java development environment construction