jira
是一个商用的java应用,用于敏捷开发项目管理或者BUG追踪等,镜像需要自己制作,免费试用30天,稍微麻烦点。
创建目录
1 2 3
| $ mkdir -p /opt/atlassian/mysql/data $ mkdir -p /opt/atlassian/mysql/conf $ mkdir -p /opt/atlassian/jiradata
|
编写docker-compose.yml文件
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
| version: '3.3'
services: jira_mysql: environment: MYSQL_ROOT_PASSWORD: 123456 MYSQL_DATABASE: myjira MYSQL_USER: myjira MYSQL_PASSWORD: 123456 image: mysql:5.7 restart: always volumes: - /opt/atlassian/mysql/data:/var/lib/mysql - /opt/atlassian/mysql/conf:/etc/mysql/mysql.conf.d ports: - 3306:3306 container_name: jira_mysql myjira: depends_on: - jira_mysql environment: TZ: "Asia/Shanghai" image: jira-xxx restart: always volumes: - /opt/atlassian/jiradata:/var/atlassian/jira ports: - 80:8080 container_name: myjira
|
image: jira-xxx 可以换成网友制作的镜像可以省很多java方面的配置
base64: aW1hZ2U6IHJlZ2lzdHJ5LmNuLWhhbmd6aG91LmFsaXl1bmNzLmNvbS95YW5nbWluZ3F1YW4vamlyYTo4LjEuMA==
启动容器
访问 http://IP:80
即可访问服务,第一次访问要配置数据库等参数。