docker-atlassian-jira-software icon indicating copy to clipboard operation
docker-atlassian-jira-software copied to clipboard

Container should survive restart

Open rubiktubik opened this issue 5 years ago • 3 comments

Hi, awesome docker-image! But i need to mount the jira specific folders so that if the container is restarted all data is not lost.

How do you handle persistent data? Some data is in the DB but if i restart the container i need to configure it again. And my previous data seems lost.

Regards rubiktubik

rubiktubik avatar Dec 19 '18 22:12 rubiktubik

You have to mount a local folder or a docker volume.

https://github.com/cptactionhank/docker-atlassian-jira-software/blob/0128d65463dc594292d1ad3c38d55f745deaa7d9/Dockerfile#L41-L44

viceice avatar Dec 20 '18 09:12 viceice

This setting is the default or i'am wrong? When i restart the container i need to do the setup again.

rubiktubik avatar Dec 20 '18 21:12 rubiktubik

By default, docker will assing only temporary volumes, wich will be deleted after container recreation. If you only restart, aka docker restart jira, then the data will survive.

So, if you want to retain the data, you have to explicitly mount a local folder or a docker volume. See https://docs.docker.com/engine/reference/run/#volume-shared-filesystems

viceice avatar Dec 21 '18 05:12 viceice