'Docker compose: Change volume mapping from a docker volume to a folder on the server
I have an instance of Jira running on an Ubuntu server with docker-compose.
I initially set it up by mapping the jira installation folder to a docker volume called jiravolume.
volumes:
- jiravolume:/var/atlassian/application-data/jira
To have easier access to the data, I would like to have this folder directly inside a folder on the Ubuntu server.
First of all, is there any difference in terms of performance/security?
If none, what are the steps to achieve this?
Let's assume that I want the data in a folder with a path (relative to the docker-compose file) like this: ./persist/jira/installfolder Do I need to create the folder structure on the server first and then change the docker-compose to become:
volumes:
- ./persist/jira/installfolder:/var/atlassian/application-data/jira
Is the data now automatically copied in the new folder or is it still in the old volume and so now jira is pointing to an empty folder?
Thank you so much
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
