Nextcloud needs a redis backend for files and login sessions.
Build and deploy Redis
The current charmhub Redis is very old. There is a version which you can build and deploy here: https://github.com/nextcloud-charmers/redis-vm
Build and deploy the redis-vm
charmcraft pack
juju deploy ./redis-vm.charm
juju relate redis:db nextcloud:redis