10-13-2023 09:47 AM
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.
10-17-2023 09:13 AM
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.
10-13-2023 10:51 PM
You need to map volume if you want to persist data.
10-16-2023 04:12 AM
Hello,
That's what I thought, but which container/folder should I use?
10-16-2023 04:46 AM
Try using this tool:
https://github.com/alfresco/alfresco-docker-installer
10-16-2023 10:12 AM
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?
10-16-2023 11:15 AM
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.
10-17-2023 09:13 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.