Giter Site home page Giter Site logo

jira's Introduction

A Docker image for Jira.

Features

  • Runs on Oracle Java 8.
  • Ready to be configured with Nginx as a reverse proxy (https available).

Usage

docker run -d -p 8080:8080 thrb/jira

Parameters

You can use this parameters to configure your jira instance:

  • -s: Enables the connector security and sets https as connector scheme.
  • -n <proxyName>: Sets the connector proxy name.
  • -p <proxyPort>: Sets the connector proxy port.
  • -c <contextPath>: Sets the context path (do not write the initial /).

This parameters should be given to the entrypoint (passing them after the image):

docker run -d -p 8080:8080 thrb/jira <parameters>

If you want to execute another command instead of launching jira you should overwrite the entrypoint with --entrypoint <command> (docker run parameter).

Nginx as reverse proxy

Lets say you have the following nginx configuration for jira:

server {
	listen                          80;
	server_name                     example.com;
	return                          301 https://$host$request_uri;
}
server {
	listen                          443;
	server_name                     example.com;

	ssl                             on;
	ssl_certificate                 /path/to/certificate.crt;
	ssl_certificate_key             /path/to/key.key;
	location /jira {
		proxy_set_header X-Forwarded-Host $host;
		proxy_set_header X-Forwarded-Server $host;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_pass http://127.0.0.1:8080;
		proxy_redirect off;
	}
}

This is only an example, please secure you nginx better.

For that configuration you should run your jira container with:

docker run -d -p 8080:8080 thrb/jira -s -n example.com -p 443 -c jira

Persistent data

The jira home is set to /data/jira. If you want to persist your data you should use a data volume for /data/jira.

Binding a host directory

docker run -d -p 8080:8080 -v /home/user/jira-data:/data/jira thrb/jira

Make sure that the jira user (with id 547) has read/write/execute permissions.

If security is important follow the Atlassian recommendation:

Ensure that only the user running Jira can access the Jira home directory, and that this user has read, write and execute permissions, by setting file system permissions appropriately for your operating system.

Thanks

  • Docker for this amazing container engine.
  • PostgreSQL for this advanced database.
  • Atlassian for making great products. Also for their work on atlassian-docker which inspired this.
  • And specially to you and the entire community.

License

This image is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

jira's People

Contributors

ahaasler avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.