izer-xyz / 3cx-docker

3CX PBX Phone System docker image. [ x86_64 | ARM | v18.x ]
MIT License
28 stars 8 forks source link

Persistant Volume #6

Closed ClepToManix closed 2 years ago

ClepToManix commented 2 years ago

Hey,

i tried to install your Docker-Container with Compose and Traefik-Setup. Inside the Dockerfile only one volume is exposed. I dont know if this is correct, but im not able to stop the container and start it again with my configured instance. A reconfigure is needed. Maybe there is a need to define a volume, which holds the configuration data. But maybe im wrong and i use the wrong configuration. The volume voip only binds /mnt/voip inside the container.

sinegar commented 2 years ago

Are you stoping the container with docker stop XXX or docker-compose down or docker-compose stop?

Please note, docker-compose up/down create/destroy the container. stop/start should keep the container data.

The persistent volume (/mnt/voip) in the example is only used for backups. The data/state is actually stored under /var/lib/3cxpbx but persisting as a volume would likely cause issues with upgrades (and also breaks the setup process, as the first run assumes the folder is not there).

The simple automated upgrade process could automatically restore from backups. Please note, there is a rate limit (5 per week?) on certificate requests from 3cx.

ClepToManix commented 2 years ago

okay, maybe thats the problem. I stopped it with docker-compose down -.- thanks for your fast answear 👍