Change nextcloud data directory to a raid1 mounted on /rdd

Ive got nextcloud to work all fine on the normal drive, the one the os is installed on, but as soon as i try to change to my raid1 device it doesnt work and says

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

I configured the raid1 trough copilot maybe thats the issue and its not mounted on /mnt/ but on /rdd

If i let it use the normal location its fine but again if i change it break and starts asking the database to use a user called oc_topes1

forgot to include my compose file

version: '3'


services:

  nc:

    image: nextcloud:apache

    environment:

      - NEXTCLOUD_DATADIR=/var/www/html/data

      - POSTGRES_HOST=db

      - POSTGRES_PASSWORD=nextcloud

      - POSTGRES_DB=nextcloud

      - POSTGRES_USER=nextcloud

    ports:

      - 80:80

    restart: always

    volumes:

      - /rdd/nx:/var/lib/postgresql/data

    depends_on:

      - db


  db:

    image: postgres:alpine

    environment:
      - POSTGRES_PASSWORD=nextcloud
      - POSTGRES_DB=nextcloud
      - POSTGRES_USER=nextcloud
      - POSTGRES_INITDB_ARGS="--auth-host=scram-sha-256"

    restart: always

    volumes:

      - db_data:/var/lib/postgresql/data

    expose:

      - 5432
  
volumes:

  db_data:

  nc_data: