Docker 一键安装Confluence(已支持最新版本)
- 本文用于Confluence在Docker的安装,仅用于记录安装方式
- Jira 也可以参考这种方式安装,只有细微差别
- 转载请注明来源
- Linux安装可参考链接
- Windows安装可查考链接
- 条件允许时,请优先选择CentOS7 原生安装
一、查找想要的版本
1. 登录DockerHub
https://hub.docker.com/
2. 筛选你需要的版本
https://hub.docker.com/r/atlassian/confluence-server/tags
二、本文搞的就是一键搞定
wget https://www.xujian.tech/raw/atlassian-agent.jar -O atlassian-agent.jar
wget http://file.xujian.tech/mysql-connector-java-5.1.49.jar -O mysql-connector-java-5.1.49.jar
wget http://file.xujian.tech/mysql-connector-java-8.0.26.jar -O mysql-connector-java-8.0.26.jar
tag=8.5.0-jdk17
docker pull atlassian/confluence-server:${tag}
docker stop confluence
docker rm confluence
docker run -v /data/confluence:/var/atlassian/application-data/confluence --name="confluence" -d -p 8090:8090 -p 8091:8091 atlassian/confluence-server:${tag}
docker cp atlassian-agent.jar confluence:/
docker cp confluence:/opt/atlassian/confluence/bin/setenv.sh ./
echo 'export CATALINA_OPTS="-javaagent:/atlassian-agent.jar ${CATALINA_OPTS}"' >> setenv.sh
docker cp setenv.sh confluence:/opt/atlassian/confluence/bin/
docker cp mysql-connector-java-5.1.49.jar confluence:/opt/atlassian/confluence/lib/
docker cp mysql-connector-java-8.0.26.jar confluence:/opt/atlassian/confluence/lib/
docker restart confluence
echo 'license获取,请联系xujian_cq,或搜索微信小程序“数字续坚”申请试用'
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
三、核心
- license获取,请联系xujian_cq,或搜索微信小程序“数字续坚”申请试用
- “数字续坚”小程序可申请长期试用