Docker Image Data directory chance

i have installed Nextclod standard docker Image and want to change the data directory. but all tut´s i found are not working :confused:

EDIT: im working with docker compose:
nextcloud:
restart: always
image: nextcloud
expose:
- "80"
ports:
- 8085:80
volumes:
- ./nextcloud:/var/www/html
networks:
- fhem-network
depends_on:
- “mysql”

and i want to only change the data directory to my nas raid

I you are using the nextcloudplus container, you can use any folder as the volume for the data directory