1.1 KiB
1.1 KiB
Nextcloud
Installation
Installation of nextcloud is easy. Just pull the image and navigate with the browser to the new instance. Enter database connection and create a user.
Enable caching
Options must be entered to nextcloud's configuration file.
- Local cache APCu:
'memcache.local' => '\OC\Memcahe\APCu', - Distributed cache Redis:
'memcache.distributed' => '\OC\Memcache\Redis', - File locking Redis:
'memcache.locking' => '\OC\Memcache\Redis', - Configuration for Redis:
'redis' => array (
'host' => 'redis',
'port' => 6379,
),
Migration to new instance
Create a new installation of nextcloud. Afterwards drop the database and create it from scratch. Dump in the data and copy user data to new instance.
Updating nextcloud
Just update the image version in the compose file and do a docker compose pull
Database migration
Convert the database from mysql to pgsql:
docker exec -it -u www-data NEXTCLOUD_CONTAINER_NAME php occ db:convert-type --all-apps --password "YOUR_PASSWORD" pgsql DB_USER DB_HOST DB_NAME