**docker-compose部署jira+postgres**

docker-compose部署jira+postgres

  1. 安装docker, docker-compose

    docker 安装略过

    docker-compose安装

    # 下载docker compose
    sudo curl -L "https://github.com/docker/compose/releases/download/1.25.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    # 添加可执行权限
    sudo chmod +x /usr/local/bin/docker-compose
    # 将文件copy到 /usr/bin/目录下
    sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
    # 查看版本
    docker-compose --version
    
  2. 准备docker-compose.yml

    version: "3"
    services:
      jira:
        image: cptactionhank/atlassian-jira-software:latest
        environment:
          - JVM_XMX=2048m
          - JVM_XMS=1024m
        ports:
          - "8080:8080"
        depends_on:
          - db-jira
        restart: always
        volumes:
          - /data/jira/jira/data:/var/atlassian/jira/data
          - /data/jira/jira/logs:/opt/atlassian/jira/logs
      confluence:
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页