项目作者: cdelaitre

项目描述 :
Docker compose with new official redmine containers
高级语言: Shell
项目地址: git://github.com/cdelaitre/docker-redmine.git
创建时间: 2016-02-04T16:01:59Z
项目社区:https://github.com/cdelaitre/docker-redmine

开源协议:

下载


docker-redmine

Official redmine with mysql back-end

Requires :

  • docker-engine version 1.10.2+
  • docker-compose version 1.6.2+

Usage

1.1 Create directories on docker host

  1. mkdir -p /data/redmine/mysql /data/redmine/db-init /data/redmine/files /data/redmine/plugins

1.2 Pre-install redmine plugins (option)

Example :

  1. cd /data/redmine/plugins
  2. git clone https://github.com/annikoff/redmine_plugin_computed_custom_field.git computed_custom_field
  3. git clone https://github.com/JostBaron/redmine_workload.git redmine_workload
  4. curl -L https://bitbucket.org/bugzinga/redcase/downloads/redcase-1.0.zip > redcase-1.0.zip && unzip redcase-1.0.zip && rm -f redcase-1.0.zip

2. Create & Start containers

  • ./run.sh or docker-compose up -d

3. Migrate database and plugins

  1. docker exec -it redmine_redmine_1 /bin/bash
  1. cd /usr/src/redmine/
  2. RAILS_ENV=production bundle exec rake db:migrate
  3. RAILS_ENV=production bundle exec rake redmine:plugins:migrate

Access URL

  1. http://<docker_host_ip>

Informations

Volumes on docker host

  • /data/redmine/mysql : database filesystem
  • /data/redmine/db-init : database initialization (can contain a backup file xxx.sql.gz automatically restored at start of database container)
  • /data/redmine/files : redmine user files
  • /data/redmine/plugins : redmine plugins

Environment

  • REDMINE_NO_DB_MIGRATE=1 : to prevent early redmine database migration
  • PASSENGER_DOWNLOAD_NATIVE_SUPPORT_BINARY=1 : to prevent passenger download