前言
安装
Docker方式
参考https://hub.docker.com/r/_/redmine/
- 安装mysql数据库
$ docker run -d --restart=always \
-p 3306:3306 --name mysql --hostname mysql \
-v /data/mysql/data:/var/lib/mysql \
-v /data/mysql/conf:/etc/mysql \
-v /temp/mysql/logs:/var/log \
-e MYSQL_ROOT_PASSWORD="pass" mysql:5.7
- 安装phpmyadmin
$ docker run --name myadmin -d --link mysql:db -p 85:80 phpmyadmin/phpmyadmin
- 安装redmine
$ docker run -d --restart=always \
--hostname redmine -p 4000:3000 --name redmine \
-v /data/redmine/plugins:/usr/src/redmine/plugins \
-v /data/redmine/data/files:/usr/src/redmine/files \
--env='REDMINE_DB_MYSQL=10.31.224.228' \
--env='REDMINE_DB_USERNAME=redmine' \
--env='REDMINE_DB_PASSWORD=KsbQgWQIkWrfvi1x' \
--env='REDMINE_PLUGINS_MIGRATE=1' \
redmine