redmin使用docker安装版本具体版本如图:
安装使用自建数据库,参考Guide - Redmine
我使用mysql,搭建完后使用sql:
CREATE DATABASE redmine CHARACTER SET utf8mb4;
CREATE USER 'redmine'@'%' IDENTIFIED BY 'redmin';
GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'%';
redmin搭建docker-compose.yml
version: '2'
networks:
redmine-network:
services:
redmine:
image: bitnami/redmine:latest
container_name: redmine
ports:
- 3001:3000
networks:
- redmine-network
volumes:
- ./plugins:/bitnami/redmine/plugins
- ./themes:/bitnami/redmine/public/themes
- ./files:/bitnami/redmine/files
- ./config/:/bitnami/redmine/config
environment:
# Host name matches the MySQL container name.
REDMINE_DB_MYSQL: 192.168.227.5
REDMINE_DB_PORT: 3306
REDMINE_DB_USERNAME: redmine
REDMINE_DB_PASSWORD: redmine
REDMINE_DB_DATABASE: redmine
REDMINE_DB_ENCODING: utf8mb4
restart: always
同级创建config,plugins,files,themes文件夹,config下创建两个文件
mkdir config plugins files themes
cd configvim database.yml
# Default setup is given for MySQL 5.7.7 or later.
# Examples for PostgreSQL, SQLite3 and SQL Server can be found at the end.
# Line indentation must be 2 spaces (no tabs).
production:
adapter: mysql2
database: redmine
host: 192.168.227.5
username: redmine
password: "redmine"
# Use "utf8" instead of "utfmb4" for MySQL prior to 5.7.7
encoding: utf8mb4
development:
adapter: mysql2
database: redmine_development
host: localhost
username: root
password: ""
# Use "utf8" instead of "utfmb4" for MySQL prior to 5.7.7
encoding: utf8mb4
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: mysql2
database: redmine
host: localhost
username: root
password: "root"
# Use "utf8" instead of "utfmb4" for MySQL prior to 5.7.7
encoding: utf8mb4
# PostgreSQL configuration example
#production:
# adapter: postgresql
# database: redmine
# host: localhost
# username: postgres
# password: "postgres"
# SQLite3 configuration