docker 安装 redmine

需要先准备一个数据库redmine ,编码为utf8 ,utf8_unicode_ci ,不要使用utf8mb4

新建用户redmine密码为redmine,并授权redmine库所有权限给redmine

 

create user 'redmine'@'%' identified by 'redmine'; -- 创建用户
grant all on redmine.* to redmine -- 授权

 

 

拉镜像

docker pull redmine

 

创建目录


mkdir
/home/dockerdata/redmine/data mkdir /home/dockerdata/redmine/files
mkdir /home/dockerdata/redmine/themes
mkdir /home/dockerdata/redmine/plugins

 

 运行

docker run -d \
-e REDMINE_DB_MYSQL=192.168.1.31 \
-e REDMINE_DB_PORT=3306 \
-e REDMINE_DB_DATABASE=redmine \
-e REDMINE_DB_USERNAME=redmine \
-e REDMINE_DB_PASSWORD=redmine \
-p 3000:3000 --restart=always \
-v /home/dockerdata/redmine/data:/home/redmine/data \
-v /home/dockerdata/redmine/files:/usr/src/redmine/files \
-v /home/dockerdata/redmine/themes:/usr/src/redmine/public/themes \

-v /home/dockerdata/redmine/plugins:/usr/src/redmine/plugins \
--name redmine \

redmine

 
posted @ 2020-02-11 16:58  Binz  阅读(581)  评论(0编辑  收藏  举报