Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify jira-config.properties in Docker Container

Brianna Hill
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 21, 2022

We're migrating to using docker containers and have a couple properties that are currently set under the Advanced Settings tab on Jira, and that are also able to be set via the jira-config.properties file. We're using template files to set other configurations, like for the dbconfig.xml and server.xml files. Is there a way to do this for the jira-config.properties file as well?

1 answer

0 votes
Artur Moura
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 3, 2022

Hi @Brianna Hill,

The overall configurations are located at jira-config.properties files there are environment variables that perform this configuration automatically.

You may use our official Atlassian Jira Docker images for reference.

In case you have some other customized configuration you want to add, I believe you should bind the file into the container.

Hope it helps, please let us know your thoughts 

Brianna Hill
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 11, 2022

@Artur Moura so we're able to set the following values as environment variables, and Jira will be able to pick them up and set them properly?

jira.bulk.create.max.issues.per.import
jira.date.time.picker.java.format
jira.search.views.max.limit
jira.search.views.default.max

If so, would the corresponding environment variables be the full name of the config? For example:

jira.search.views.default.max --> JIRA_SEARCH_VIEWS_DEFAULT_MAX

Thank you!

Artur Moura
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 11, 2022

Hi @Brianna Hill

Thanks for your reply!

By default these configurations you are mentioning there isn't supported using docker environment variables by default.

With that, you would need to create a custom docker image, and using the Jinja templates create the jira-config.properties.j2 file accordingly.

I believe you should start looking at the entrypoint.sh file located at this link, which has some examples about how it is configured the other files, like the server.xml one.

Hope it clarifies, please let us know your thoughts.

Suggest an answer

Log in or Sign up to answer