Forums

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

How to configure SSL in Docker

Rafal Niznik
Contributor
January 13, 2020

Does anyone know how to configure Service Dest to use SSL in docker?

The problem I have now is when I restart docker container my configuration is gone.

This container has volume mapped to /var/atlassian/application-data/jira but server.xml is under different dir.  Any ideas how to create this SSL permanent config in docker?

 

Thanks

1 answer

0 votes
Adrian Stephen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 21, 2020

@Rafal Niznik 

 

You need to drop in your own preconfigured server.xml to replace the template at /opt/atlassian/config.server.xml.j2.

There are a few ways you can do this:

• Customise our image from the bitbucket repo, then build it yourself 
• Build your own image based on ours 

FROM atlassian/jira-software
COPY my_custom_server.xml /opt/atlassian/config/server.xml.j2


• Just run a normal atlassian/jira-software container, copy your own preconfigured server.xml into the running container and restart it:

docker run --name my_jira_container … (your params here ) … atlassian/jira-software

docker cp my_custom_server.xml
my_jira_container:/opt/atlassian/config/server.xml.j2

docker restart my_jira_container

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events