Setting Up Immich to Index Your Existing Image Library (External Drive or Folder)
Setting Up Immich to Index Your Existing Image Library (External Drive or Folder)¶
π¦ What is Immich?¶
Immich is a powerful self-hosted photo and video management app that looks and feels similar to Google Photos. It supports:
- Automatic backup from mobile apps
- AI-based tagging and face detection
- Multiple user support
- External storage indexing
π§° Installation Options¶
Before indexing your existing photo library, you first need to install Immich.
You have two primary options:
β Option 1: Docker Compose (Recommended)¶
- Clone Immich's Docker config:
git clone https://github.com/immich-app/immich.git
cd immich
- Start Immich:
docker-compose up -d
This sets up Immich with PostgreSQL, Redis, Typesense, and the Immich services.
β Option 2: TrueNAS SCALE App (Easier Setup)¶
- TrueNAS SCALE offers Immich as an official app under Apps β Discover Apps.
- It handles all backend services like PostgreSQL for you.
- Choose your storage mounts during app setup.
π Initial Setup & First Login¶
- Access Immich via your local IP (e.g.
http://192.168.1.100:2283
) - Register your first admin user.
- After login, you'll see a familiar UI like Google Photos.
π οΈ Indexing an Existing Photo Library¶
To have Immich scan and index photos from an external drive or existing folder, follow these steps:
1. π Make Sure the Directory is Mounted¶
Make sure your folder or drive with photos is:
- Mounted to the host machine (Docker or TrueNAS SCALE)
- Mapped into the Immich container
For example, in docker-compose.yml
, under the immich-machine-learning
and immich-server
services:
volumes:
- /mnt/mydrive/photos:/mnt/photos
In TrueNAS SCALE:
- During App install/edit β Add a new Host Path Volume
- Map e.g.
/mnt/your-dataset/photos
to/mnt/photos
inside container
2. βοΈ Go to Immich Administration¶
From the Immich UI:
- Click your profile icon (top right)
- Select Administration
- Navigate to External Libraries
3. β Add a New Library¶
Click "Add External Library" and configure:
- Name: e.g.,
GooglePhotosArchive
- Path: e.g.,
/mnt/photos
(should match your mounted folder) - Recursive: β (to scan all subfolders)
Click Create to add it.
4. π Let Immich Scan Your Library¶
- Immich will begin scanning and indexing all photos and videos.
- Youβll see it pick up files and begin categorizing them.
- Depending on your photo count and hardware, it may take several hours or up to 1β2 days.
β±οΈ Example: For a 271GB Google Photos archive (~100,000+ images), Immich indexed everything successfully after ~1.5 days.
β Notes & Tips¶
- You do not need to move or duplicate your photos; just mount the folder.
- Immich will not modify your original files.
- The scan runs automatically but can be re-triggered by editing the library and clicking Rescan.
- Face recognition, metadata, and object detection happen asynchronously in background.
- You can monitor logs via:
docker logs -f immich-machine-learning
docker logs -f immich-server
π Final Thoughts¶
Once indexed, your external photos become fully searchable and browsable in Immich β just like Google Photos. Features like albums, tags, and face clustering work even on externally indexed images.