Hello,
I installed Alfresco with Docker following this documentation:
https://docs.alfresco.com/content-services/community/install/containers/docker-compose/
The problem I'm having is that I'm losing the documents I add to the shared files. I would therefore like to know how to maintain the following data when I restart my containers or upgrade the version of Alfresco:
- documents
- sites
- users
Best regards.
Solved! Go to Solution.
Hello,
I found a solution by creating a volume for the alf_data folder and postgresql as well as persistence between the data in the volumes and the containers when I launch the environment. Thanks for your help.
You need to map volume if you want to persist data.
Hello,
That's what I thought, but which container/folder should I use?
Try using this tool:
https://github.com/alfresco/alfresco-docker-installer
Hello Angel,
Thanks for your feedback. I checked the templates for this tool and it seems that the solution is to have a volume.
Using the tool could be useful but I've already set up my entire environment to use Alfresco according to my needs, so all I need to do is sort out the lost document issue.
I have this option in my Alfresco Dockerfile:
VOLUME alf_data
ADD alf_data /usr/local/tomcat/alf_data
In my container, I have data in alf_data/contentstore. However, in the local alf_data folder I have nothing at all. Do you have any ideas?
I recommend you to read a good tutorial on Docker Volumes, like https://earthly.dev/blog/docker-volumes/
Additionally, managing volumes in docker-compose.yml file is usually a more flexible approach.
Hello,
I found a solution by creating a volume for the alf_data folder and postgresql as well as persistence between the data in the volumes and the containers when I launch the environment. Thanks for your help.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.