Unable to have multiple NEXTCLOUD_MOUNT

i wanted to use multiple local_storages within the external storage plugin and i stupidly tried adding -e NEXTCLOUD_MOUNT="/mnt/folder1" -e NEXTCLOUD_MOUNT="/mnt/folder2" to my docker run command not realizing they’re environmental variables so now i’m stuck with just one of these folders available.

Which is the proper way to achieve this?

Hi, the correct way is using the parent folder. In your case -e NEXTCLOUD_MOUNT="/mnt/"

1 Like

But how do I mount multiple folders that do not share a parent folder?

I think it is not possible. But then how do you think to distribute e.g. 1000 users to 2 x 500 users on two mountpoints if Nextcloud only knows one data directory anyway?

'datadirectory' => '/var/www/nextcloud/data',


I think you need one parent folder.

1 Like