05-18-2022 03:24 AM
Hi,
I have used a base 7.1 docker compose from github and changed it per the needs of a training course I was taking. However, during the process of setting this up and even after the training, I have ended up with blank system multiple times. What I mean by that is that I have lost content/folders/models created as part of the training. The biggest indicator that I have lost the DB data is that the alfresco container startup suddenly reports that the system is only licensed for 2 days (the base number of days of licensing). At this point, I have applied the license file at least 5 times over the last few weeks.
After following some other posts, I finally added volume mappings to my docker compose YAML file. I also had trouble with this because the postgres container didn't like the mapping on the c drive of my machine. I ended up mapping it to an arbitrary path on what I suppose is a path on the underlying docker container and that allowed it to work without issues for a couple of days. For the volume mapping for the alfresco container, I can clearly see content files being created on the host path.
However, as of today, I again have the base system and have lost all configs and content I had created over the past few days. Following are the volume mappings I have in the compose file:
image: acs-platform-jsconsole:latest #(from FROM quay.io/alfresco/alfresco-content-repository:7.1.1.2 with JS console)
volumes:
- /c/temp/alfresco-system-persistent-data/data/alf-repo-data:/usr/local/tomcat/alf_data
- /c/temp/alfresco-system-persistent-data/logs/alfresco:/usr/local/tomcat/logs
postgres:
image: postgres:13.3
volumes:
- /random/alfresco-system-persistent-data/data/alf-postgres-data:/var/lib/postgresql/data
- /random/alfresco-system-persistent-data/logs/alf-postgres:/var/log/postgresql
I would really like to know what I am doing wrong and how can I successfully get the DB data to persist.
05-18-2022 04:38 AM
You may check this project: https://github.com/alfresco/alfresco-docker-installer
It will allow you to understand all the volumes required to persist Alfresco information.
Explore our Alfresco products with the links below. Use labels to filter content by product module.