How to Run Jira in a Docker Container on Ubuntu

Photo by Alvaro Reyes on Unsplash

Jira is a proprietary issue tracking product developed by Atlassian that allows bug tracking and agile project management.

This post shows you how to deploy it in a Docker Container on Ubuntu.

Step 1: Install Docker

Step 2: Install Docker-Compose

Step 3: Download the Jira docker image

git clone https://github.com/haxqer/jira.git \
&& cd jira
&& docker-compose pull

Step 4: Start Jira Service

docker-compose up -d

Step 5: Configure and Restart Nginx Service

# /etc/nginx/conf.d/jira.confserver {
listen 80;
server_name jira.yourdomain.com;
access_log off;
location / {

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8080/;
}
}

Step 6: Open jira.yourdomain.com, then configure database connection parameters and other common configurations according to your choice

Step 7: Modify Jira configuration file for correct image rendering

# server.xml config file from $JIRA/conf/# add/modify this line from <Service name="Catalina"> directive<Connector acceptCount="100" connectionTimeout="20000"    disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" port="8080" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true" scheme="http" proxyName="jira.yourdomain.com" proxyPort="80"/>

Have fun to enjoy the most powerful Project Management Software.

Developer in China, AI and machine learning enthusiast

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store