Package files deleted when docker container (re)starts

Infos:

  • Used Zammad version: 3.3.x
  • Used Zammad installation source: docker-compose
  • Operating system: Ubuntu 18.04
  • Browser + version: N/A

Expected behaviour:

  • After installing a package, it’s possible to restart the docker-compose container and the package will (still) function. (In my case, the package modifies the UI, so it requires a restart, as confirmed in another post.)

Actual behaviour:

  • The zammad-init service uses rsync --delete to reinitialise the mounted volume on every start. This has the nasty side-effect of uninstalling all package files. (It also makes the file backup routine pointless as it backs up the same thing every time.)

Steps to reproduce the behaviour:

  • Install a package
  • docker-compose restart

You chose the wrong technology for custom changes.
One of the biggest advantages of docker containers is that you can just restart them and everything that broke is gone.