参考点这
#!!!连不上的话就要选第一 手动在 http://JIRA域名/plugins/servlet/applinks/listApplicationLinks 添加应用程序链接
docker run --name mysql-test -e MYSQL_ROOT_PASSWORD=12345678 -p 3306:3306 -v mysql-conf:/etc/mysql/conf.d -d mysql:5.7
# 创建数据库及用户
CREATE DATABASE jiradb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
grant all on jiradb.* to 'jirauser'@'%' identified by '12345678';
CREATE DATABASE confdb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
grant all on confdb.* to 'confuser'@'%' identified by '12345678';
FROM atlassian/jira-software
USER root
COPY "atlassian-agent.jar" /opt/atlassian/jira/
RUN echo 'export CATALINA_OPTS="-javaagent:/opt/atlassian/jira/atlassian-agent.jar ${CATALINA_OPTS}"' >> /opt/atlassian/jira/bin/setenv.sh
docker build -t jira/jira:v1 .
docker volume create jira
docker run -d --name jira\
-p 18009:8080 \
-e TZ="Asia/Shanghai" \
-m 4096M \
-v jira:/var/atlassian/application-data/jira \
jira/jira:v1
http://192.168.3.102:18009
java -jar atlassian-agent.jar \
-d -m 502369651@qq.com -n BAT \
-p jira -o http://192.168.3.102 \
-s B41N-U4TC-6BJE-C3VR
FROM atlassian/confluence-server
USER root
COPY "atlassian-agent.jar" /opt/atlassian/confluence/
COPY "mysql-connector-java-5.1.48.jar" /opt/atlassian/confluence/confluence/WEB-INF/lib/
RUN echo 'export CATALINA_OPTS="-javaagent:/opt/atlassian/confluence/atlassian-agent.jar ${CATALINA_OPTS}"' >> /opt/atlassian/confluence/bin/setenv.sh
docker build -t jira/confluence:v2 .
docker volume create confluence
docker run -d --name confluence \
-p 18010:8090 -p 18011:8091\
-e TZ="Asia/Shanghai" \
-v confluence:/var/atlassian/application-data/confluence \
jira/confluence:v2
java -jar atlassian-agent.jar \
-d -m 502369651@qq.com -n BAT \
-p conf -o http://192.168.3.102 \
-s BC72-TKVA-OCBO-N32Q
192.168.3.102:18009 admin 12345678