jimtse
网站页面
docker pull registry.cn-hangzhou.aliyuncs.com/yangmingquan/jira:8.1.0
mkdir -p /data3/atlassian/mysql/data
mkdir -p /data3/atlassian/mysql/conf
version: '3.3'
services:
jira_mysql:
environment:
MYSQL_ROOT_PASSWORD: root
image: mysql:5.7
restart: always
volumes:
- /data3/atlassian/mysql/data:/var/lib/mysql
- /data3/atlassian/mysql/conf:/etc/mysql/mysql.conf.d
ports:
- 5306:3306
container_name: jira_mysql
docker-compose up -d
mkdir -p /data3/atlassian/jiradata
docker run -d --name cpmcjira --restart always -p 18080:8080 -e TZ="Asia/Shanghai" -m 4096M -v /data3/atlassian/jiradata:/var/atlassian/jira registry.cn-hangzhou.aliyuncs.com/yangmingquan/jira:8.1.0
这里我们将
jira的启动容器名称设置为:cpmcjira
jira的启动容器端口设置为:18080
jira的数据挂载目录设置为:/data3/atlassian/jiradata
docker exec -it jira_mysql bash
mysql -uroot -p
create database jiradb;
**程序标题:自定义
模式:我们选择私有
基本URL:也就是我们访问jira使用的url**
这里出错了,修改数据库和表编码为utf8或utf8mb4即可。
ALTER DATABASE db_name DEFAULT CHARACTER SET character_name [COLLATE ...];
ALTER TABLE tbl_name CONVERT TO CHARACTER SET character_name [COLLATE ...]
ALTER TABLE serviceconfig CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
步骤1:进入容器内
docker exec -it cpmcjira /bin/bash
步骤2:到atlassian-agent.jar所在目录
cd /opt/atlassian/jira
步骤3:执行生成许可证关键字的命令
java -jar atlassian-agent.jar -d -m test@test.com -n BAT -p jira -o http://192.168.2.16 -s 页面上的服务器ID
步骤4:填写许可证关键字,点击下一步