Document loss with Alfresco under Docker

cancel
Showing results for 
Search instead for 
Did you mean: 
jbpiotr
Partner

Document loss with Alfresco under Docker

Jump to solution

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 Solution

Accepted Solutions
jbpiotr
Partner

Re: Document loss with Alfresco under Docker

Jump 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.

View solution in original post

6 Replies
sanjaybandhniya
Intermediate

Re: Document loss with Alfresco under Docker

Jump to solution

You need to map volume if you want to persist data.

jbpiotr
Partner

Re: Document loss with Alfresco under Docker

Jump to solution

Hello,

That's what I thought, but which container/folder should I use?

angelborroy
Alfresco Employee

Re: Document loss with Alfresco under Docker

Jump to solution

Try using this tool:

https://github.com/alfresco/alfresco-docker-installer

Hyland Developer Evangelist
jbpiotr
Partner

Re: Document loss with Alfresco under Docker

Jump to solution

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?

angelborroy
Alfresco Employee

Re: Document loss with Alfresco under Docker

Jump to solution

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
jbpiotr
Partner

Re: Document loss with Alfresco under Docker

Jump 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.