I'm already using a volume for the main data storage of Nextcloud. My idea was to mount this volume in the Immich app and let it index the pictures inside using an external library.
I was not aware of the existence of the "media" group. Once I applied it to the data directory of Nextcloud (chown :media data/), Immich was able to crawl the directory!
Thanks!