NotePublic/Software/Applications/Redmine/Docker_方式安装_Redmine.md

88 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Docker 方式安装 Redmine
```bash
# Run Redmine with SQLite3
docker run -d -p 9001:3000 --name redmine redmine
# Run Redmine with a Database Container
docker run -d --name redminedb -v "$PWD/database":/var/lib/mysql -e MYSQL_USER=root -e MYSQL_PASSWORD=<password> -e MYSQL_DATABASE=redmine -e MYSQL_ROOT_PASSWORD=<password> mariadb:latest
docker run -d --name redmine --link redminedb:mysql -p 9001:3000 -e REDMINE_DB_MYSQL=redminedb -e REDMINE_DB_USERNAME=root -e REDMINE_DB_PASSWORD=<password> -v /home/web/bin/redmine/config/configuration.yml:/usr/src/redmine/config/configuration.yml -v /home/web/bin/redmine/log:/usr/src/redmine/log -v /home/web/bin/redmine/data:/home/redmine/data -v /home/web/bin/redmine/plugins:/usr/src/redmine/redmine/redmine/plugins redmine:latest
```
之后使用默认用户名密码登陆admin/admin
## 登录后配置
角色增加:
* Manager
* Tester
* Developer
跟踪标签增加:
* 里程碑
* 任务
* 需求用例
* 功能
* 缺陷
* 需求单
* 维护单
* 故障单
* 发布申请单
问题状态增加:
* 新建
* 待审核
* 已指派
* 不处理
* 进行中
* 已解决
* 测试中
* 已验证
枚举中为问题优先级增加:
* 普通
* 优先
* 紧急
## config/configuration.yml 文件配置
### 附件设置
```yml
attachments_storage_path: /path/to/attachments
attachments_mas_size: 51200
```
### 电子邮件服务器配置
```yml
# For exmail.qq.com
email_delivery:
delivery_method: :smtp
smtp_settings:
address: "smtp.exmail.qq.com"
port: 465
domain: 'smtp.exmail.qq.com'
authentication: login
user_name: 'noreply@xxx.com'
password: '******'
ssl: true
enable_starttls_auto: true
# For smtp.163.com
email_delivery:
delivery_method: :smtp
smtp_settings:
address: "smtp.163.com"
port: 25
domain: 'smtp.163.com'
authentication: :login
user_name: 'noreply@xxx.com'
password: '******'
```
邮件测试redmine 的 配置->邮件通知 页面,设定之后点击“发送测试邮件”即可确认。成功之后,登陆用户会收到从设置的邮箱服务器发来的一封 email否则会在设置页面中提示相关错误。