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
–init
–sig-proxy=false
–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”
nextcloud/all-in-one:latest
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
Karl