ACS 7.1 deployed on Docker Desktop keeps loosing database
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:126.96.36.199 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