Nextcloud with data-dir on local Harddrive

I installed Nextcloud Homeserver on a small Linux Computer and used the Github Installscript:

For Linux and without a web server or reverse proxy (like Apache, Nginx, Cloudflare Tunnel and else) already in place:

sudo docker run
–name nextcloud-aio-mastercontainer
–restart always
–publish 80:80
–publish 8080:8080
–publish 8443:8443
–volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config
–volume /var/run/docker.sock:/var/run/docker.sock:ro
> --env NEXTCLOUD_DATADIR=“/mnt/nextcloud”

as you can see I added (following the documentation) the bold marked line (=-env NEXTCLOUD_DATADIR="/mnt/nextcloud) and I hoped, that during the installation this directory will be used for my data. But this did not worked.

What shall I do? to modify the script in that way that this external harddrive is used fo my nextcloud data?

May thanks in advance

for me it looks good for Linux install

you should double check if you added right permissions and the system can access this path.

of course I did not any rights to this directory… which rights for what user?

of course you will this using the search

Hi @Karl_Exler did you already finish the installation via the AIO interface? Di you enter your domain and clicked on download and start containers?