MariaDB 10.5.8 on QNAP and Nextcloudpi

Hi, i have a QNAP NAS with MariaDB 10.5.8 installed, what should i do to be able to take advantage of my NextcloudPi and my qnap database SQL

I want to be able to use my Nextcloudpi pi5 with a 2TB hard disk and use Mariadb on my qnap nas.

any thoughts ?
thank yo,u