The persistent data is just the contents of config/ (configuration),
apps/ (installed apps), and data/ (user data). The source code should
not be made into a volume because it will cause persistence issues when
you try to update an image.
Currently the existing setup means that standard Docker-style updates
(where you start a new Docker image) won't actually update the source
code -- causing confusion and other issues.
This matches how ownCloud's setup works as well.
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
In order to match ownCloud's Docker images, we need to provide -apache
and -fpm variant images as well as maintaining version tags for older
images.
These scripts are improved versions of the ownCloud scripts[1] because
they also automatically generate the directories with each ./update.sh,
and also generate all aliases without needing human intervention.
[1]: https://github.com/docker-library/owncloud/blob/master/generate-stackbrew-library.sh
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>