Container data and RAID1

I was able to deploy nexcloudpi successfully using portainer (image: ownyourbits/nextcloudpi-armhf:latest) but afterr realizing I was using my SD card’s storage space I decided to delete and redeploy the container … this time binding a directory in my RAID1 array:

container -> /data
host -> /srv/dev-disk-by-id-md-name-raspberrypi-0/Nextcloud

And that’s when everything failed… Aparently there is some problem with the database… from the portainer log:

Making /usr/local/etc/ncp-config.d persistent ...,
Making /etc/services-enabled.d persistent ...,
Making /etc/letsencrypt persistent ...,
Making /etc/shadow persistent ...,
Making /etc/cron.d persistent ...,
Making /etc/cron.daily persistent ...,
Making /etc/cron.hourly persistent ...,
Making /etc/cron.weekly persistent ...,
Making /usr/local/bin persistent ...,
Making /etc/apache2 persistent ...,
Starting PHP-fpm,
Starting Apache,
Starting mariaDB,
2020-07-16 19:26:23 0 [Note] mysqld (mysqld 10.3.22-MariaDB-0+deb10u1) starting as process 185 ...,
2020-07-16 19:26:23 0 [Warning] Can't create test file /data/database/0ae23b1eb4e7.lower-test,
amysqld: Can't change dir to '/data/database/' (Errcode: 2 "No such file or directory"),
2020-07-16 19:26:23 0 [ERROR] Aborting,

I am not very well versed into these things, which is why I went with nexcloud pi , openmediavault and portainer but it seems there is a problem… I see that something got created in the Nexcloud folder but have no clue what to do about this issue… Any pointers will be appreciated

here is the output of lsblk in case it is useful:

NAME        MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda           8:0    0 931.5G  0 disk  
└─sda1        8:1    0 931.5G  0 part  
  └─md0       9:0    0 931.4G  0 raid1 /srv/dev-disk-by-id-md-name-raspberrypi-0
sdb           8:16   0 931.5G  0 disk  
└─sdb1        8:17   0 931.5G  0 part  
  └─md0       9:0    0 931.4G  0 raid1 /srv/dev-disk-by-id-md-name-raspberrypi-0
sdc           8:32   0 931.5G  0 disk  
└─sdc1        8:33   0 931.5G  0 part  
  └─md1       9:1    0 931.4G  0 raid1 /srv/dev-disk-by-id-md-name-raspberrypi-1
sdd           8:48   0 931.5G  0 disk  
└─sdd1        8:49   0 931.5G  0 part  
  └─md1       9:1    0 931.4G  0 raid1 /srv/dev-disk-by-id-md-name-raspberrypi-1
mmcblk0     179:0    0  14.9G  0 disk  
├─mmcblk0p1 179:1    0   256M  0 part  /boot
└─mmcblk0p2 179:2    0  14.6G  0 part  /

EDIT: I also discovered that this is probably why I get stuck at the Nextcloud Pi Activation page…