cancel
Showing results for 
Search instead for 
Did you mean: 

Document loss with Alfresco under Docker

jbpiotr
Champ on-the-rise
Champ on-the-rise

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.

1 ACCEPTED ANSWER

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.

View answer in original post

6 REPLIES 6

sanjaybandhaniya
Elite Collaborator
Elite Collaborator

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

Hyland Developer Evangelist

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.

Hyland Developer Evangelist

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.