-
start to background
make start -
stop
make stop
cp env_example env
edit env
fix for nextcloud/docker#1695
*/5 * * * * /usr/bin/docker exec -u 1000:1000 nextcloud_stack_nextcloud php -f /var/www/html/cron.php
(!) removes all generated data files
(!) data loss
(!) needs root privileges
- copy data
rsync -e 'ssh -p 22 -o "StrictHostKeyChecking no"' -ravzx --delete --numeric-ids /SOURCE/nextcloud/data/USER/files /DESTINATION/nextcloud_docker_stack/stack_data/nextcloud_data/datadir/USER/
- run files scan
/usr/bin/docker exec -u 1000:1000 nextcloud_stack_nextcloud /var/www/html/occ files:scan --all
Updating is done by pulling the new image, throwing away the old container and starting the new one.
- stop the stack
make stop - remove old nextcloud docker image
docker image rm nextcloud:fpm-alpine - start the stack
make start
http://127.0.0.1:8080