Nextcloud caching with redis in UCS docker?

Question?
I intend to activate the redis caching funktion see how to: https://www.techrepublic.com/article/how-to-enable-caching-on-nextcloud-16/
But before I start, I need to know if there is anything special to consider, because my Nexcloud 16 is within a docker instance and UCS??

thanks for advice

Urs

Caching is already enabled, however using APCu inside the same container.

thanks blizzz! This answers my question. :slightly_smiling_face:

I had a look into that as well and was wondering if it is possible to add redis as an alternative or at least for locking with the nextcloud UCS ?

Here is what I did so far:

  1. Pulled redis docker and started it up with
    "docker run -v /opt/redis/conf:/usr/local/etc/redis -v /opt/redis/data:/data -p 6379:6379 --name nextcloud-redis -d --restart always redis redis-server /usr/local/etc/redis/redis.conf"
  2. Opened port 6379 in the UCS firewall
  3. Edited “/var/lib/univention-appcenter/apps/nextcloud/data/integration/config/config.php” as well as the config.php inside the nextcloud docker container with the following lines:
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'server.ucs.com',
    'port' => 6379,
    'password' => 'BESTPASSWORDINTHEWORLD',
    'timeout' => 0.0,
  ),

When I start the monitoring in redis via “redis-cli monitor” nothing happens. No connection attempts what so ever.
Nextcloud however works fine as before.
If I set memcache.local from APCu to redis nextcloud comes up with an internal server error.

Any idea what goes wrong here ?

Cheers

Mastodon