Skip to content

ooXavier/docker-jira

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-jira

A Dockerfile that installs a jira server

Database connection

The connection to the database can be specified with an URL of the format:

[database type]://[username]:[password]@[host]:[port]/[database name]

Where database type is either mysql or postgresql and the full URL might look like this:

postgresql://jira:jellyfish@172.17.0.2/jiradb

When a database url is specified Jira will skip the database configuration step in the setup.

Configuration

Configuration options are set by setting environment variables when running the image. What follows it a table of the supported variables:

Variable Function
CONTEXT_PATH Context path of the jira webapp. You can set this to add a path prefix to the url used to access the webapp. i.e. setting this to jira will change the url to http://localhost:8080/jira/. The value ROOT is reserved to mean that you don't want a context path prefix. Defaults to ROOT
DATABASE_URL Connection URL specifying where and how to connect to a database dedicated to jira. This variable is optional and if specified will cause the Jira setup wizard to skip the database setup set.

Example

PASSWD=test
docker run -d --name mysql -p 3306:3306 -v /opt/data:/var/lib/mysql -e MYSQL_PASS="${PASSWD}" mooxavier/mysql 
./initialise_db.sh ${PASSWD}
docker run -t -d --name jira --link mysql:db -p 8080:8080 -e "DATABASE_URL=mysql://jirausr:jellyfish@0.0.0.0:3306/jiradb" mooxavier/docker-jira

About

A Dockerfile that installs a jira server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages