docker-freepbx
docker-freepbx copied to clipboard
Persistent data not working
Hi,
I'm using the image with Portainer and I added two volumes to the container for /data and /assets. However, if I do some changes on the container configuration (e.g. changing the port forwarding) via the "Duplicate/Edit" option in Portainer all the "persistent" configuration is gone, afterwards. Is there, maybe, a problem with the section "### Setup for Data Persistence" in the Dockerfile which uses some "mv" commands to move data? Is this overwriting the persistent data in the volume?
Thanks,
Thomas
During the Docker Build I do a bunch of folder/symbolic link movements for any volatile information, such as Asterisk, Mysql, Cron. mapping the volume of /data inside the container should keep everything persistent. On container first startup I check the existence of /data and then move some other files around if they already haven't, and if they have, I simply change the locations of folders (e.g. /etc/asterisk now points to /data/etc/asterisk). It shouldn't be overwriting anything it's not supposed to if they already exist.
I wonder if portainer is deleting the mapped volume somehow? It's been a while since i have used it.