Updated and tested 1 May 2026
Everyone who installs Immich hits the same moment: the phone backup works beautifully, and then you remember the twenty years of photos already sitting in folders, on the NAS, from old cameras and older phones. Uploading them means surrendering their organization to Immich's storage. External libraries are the other door: Immich indexes your existing folders in place, read-only, giving them search, faces and the timeline without moving a byte. Here's the setup and the handful of rules that make it behave.
How external libraries differ from uploads
The contract, per the official external libraries docs: Immich reads the files where they are, never moves or renames them, and reflects changes on disk into the app when it scans. Your folder structure stays yours. The trade-offs that follow are logical once you hold that model. Deleting an external asset in the app removes it from Immich's index, not from your disk (with the newer file-deletion options being explicit opt-ins). The mobile app doesn't back up into an external library; uploads always go to Immich-owned storage. And the storage template engine ignores external files entirely, since not touching your structure is the whole promise, a division our storage template guide draws from the other side.
Step 1: mount the folders into the container
The Immich server can only index what its container can see, so the photo folders need a volume mount. In docker-compose.yml under immich-server:
volumes:
- ${UPLOAD_LOCATION}:/data
- /srv/photos/archive:/mnt/media/archive:ro
Keep the existing UPLOAD_LOCATION line and add yours below it. The :ro makes the mount read-only, and I consider it non-negotiable for archives: it converts every category of bug, misclick and future feature into a physical impossibility. Recreate the stack with docker compose up -d.
The archive mount sits under the stock UPLOAD_LOCATION line, read-only.
NAS folders work the same way once mounted on the host (NFS or SMB via fstab), with the classic caveat that the container sees the mount as it existed at start, so remounts on the host want a container restart after.
Step 2: create the library and import path
External libraries live in the admin area: Administration » External Libraries » Create library, pick which user owns it, then open the library and add the folder using the container-side path (/mnt/media/archive, not the host path, the single most common setup error). Exclusion patterns sit on the same page, glob-style, and two earn their place in almost every setup:
**/@eaDir/**
**/*_edited*
The first skips Synology's thumbnail droppings, the second is an example of trimming editor-generated duplicates; season to your own folder history.
Then hit scan and watch Administration » Job Queues light up: discovery first, then metadata extraction, thumbnails and the ML pass over everything found. On my test archive the scan imported the two originals and skipped both a file inside @eaDir and an _edited copy.
After the scan my test archive held two photos: the @eaDir file and the _edited copy were skipped.
A large archive takes hours to fully enrich, and search over it sharpens as the queues drain.
Step 3: keep it in sync
When files change on disk, a scan picks it up: new files appear, changed files re-read and deleted files move to the trash (files a new exclusion pattern matches go offline instead). Scans trigger three ways, and the right mix depends on how alive the folder is. Manual scans from the library's menu suit a static archive that changes yearly. Scheduled scans (the library scan interval in admin settings) suit folders other software drops files into. And automatic watching (the library watch toggle) reacts to filesystem events in near real time, with the honest footnote that inotify events don't cross network mounts reliably, so NAS-backed libraries should lean on scheduled scans instead of trusting the watcher.



