Unable to read/ write data from an external local drive

I have installed Nextcloud behind a docker container on a server. I have an external ext4 (hardware raid 1) drive mounted with www-data drwxrwxrw- permissions, although I have tried others. In my docker-compose.yaml I pass the drive over: app:
image: nextcloud:fpm-alpine
restart: always
volumes:
- nextcloud:/var/www/html:z
- /media/raidy:/usr/local/DATA:z
environment:
- MYSQL_HOST=db
- REDIS_HOST=redis
env_file:
- db.env
depends_on:
- db
- redis
I then import /usr/local/DATA using the nextcloud external drive feature. It appears under this mounting point and can take a friendly name, however no files inside this location are visible, and I cannot write files or make directories inside this external folder. I can within nextcloud’s /var/www/html. What am I doing wrong and now should I get read and write access to this folder? Many thanks

Ensure the www-data user in your Docker container has read/write access to the external drive and verify permissions in /media/raidy. Also, check SELinux settings and Nextcloud logs for any permission issues.