After installation, There are a couple of things to clean up and to configure further.
1 Install Dockerwe will have to run following two commands to fix settings warnings:
docker-compose exec -u www-data app php occ db:add-missing-indices docker-compose exec -u www-data app php occ db:convert-filecache-bigint2 Adding local file folder under your nextCloud user
For example, if your nextcloud user is admin, you would like to add your local files under this user, you will need to copy all files to following folder.
/opt/nextcloud/app/data/admin/files
After copied all files into this folder, using following command to scan them:
docker-compose exec -u www-data app php occ files:scan --all
3 If you would like to install ffmpeg, following these commands:
docker exec -it nextcloud_app_1 bash apt -y update apt -y install ffmpeg
Backup & Restore
Here are some steps to backup and restore your NextCloud system:
1 Stop all dockers running using docker-compose command.cd /opt/nextcloud docker-compose stop2 Pack all files from /opt/nextcloud folder
cd /opt tar -zcvf nextcloud.tar.gz nextcloud3 Transfer tar file to new machine
scp nextcloud.tar.gz root@serverip:/opt4 Install Docker and Docker Compose on new machine
cd /opt tar -xzvf nextcloud.tar.gz
5 Bring dockers up, which should still keeps all of your files and configuration
cd nextcloud docker-compose up -d