docker-atlassian-jira-software
docker-atlassian-jira-software copied to clipboard
Container should survive restart
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
You have to mount a local folder or a docker volume.
https://github.com/cptactionhank/docker-atlassian-jira-software/blob/0128d65463dc594292d1ad3c38d55f745deaa7d9/Dockerfile#L41-L44
This setting is the default or i'am wrong? When i restart the container i need to do the setup again.
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