2023-12-15 11:38:14 -08:00
|
|
|
# External Library
|
|
|
|
|
2024-01-13 13:15:32 -07:00
|
|
|
This guide walks you through adding an [External Library](/docs/features/libraries#external-libraries).
|
2023-12-15 10:46:43 -08:00
|
|
|
This guide assumes you are running Immich in Docker and that the files you wish to access are stored
|
|
|
|
in a directory on the same machine.
|
|
|
|
|
|
|
|
# Mount the directory into the containers.
|
|
|
|
|
|
|
|
Edit `docker-compose.yml` to add two new mount points under `volumes:`
|
|
|
|
|
|
|
|
```
|
|
|
|
immich-server:
|
|
|
|
volumes:
|
2024-03-07 22:27:02 +01:00
|
|
|
- /path/to/photos/on/host:/usr/src/app/external
|
2023-12-15 10:46:43 -08:00
|
|
|
```
|
|
|
|
|
|
|
|
Be sure to add exactly the same line to both `immich-server:` and `immich-microservices:`.
|
|
|
|
|
|
|
|
Restart Immich.
|
|
|
|
|
|
|
|
```
|
|
|
|
docker compose down
|
|
|
|
docker compose up -d
|
|
|
|
```
|
|
|
|
|
2024-03-07 22:27:02 +01:00
|
|
|
# Create the library
|
2023-12-15 10:46:43 -08:00
|
|
|
|
|
|
|
In the Immich web UI:
|
|
|
|
|
|
|
|
- click the **Administration** link in the upper right corner.
|
|
|
|
<img src={require('./img/administration-link.png').default} width="50%" title="Administration link" />
|
|
|
|
|
2024-03-07 22:27:02 +01:00
|
|
|
- Select the **External Libraries** tab
|
|
|
|
<img src={require('./img/external-libraries.png').default} width="50%" title="External Libraries tab" />
|
2023-12-15 10:46:43 -08:00
|
|
|
|
2024-03-07 22:27:02 +01:00
|
|
|
- Click the **Create Library** button
|
|
|
|
<img src={require('./img/create-external-library.png').default} width="50%" title="Create Library button" />
|
2023-12-15 10:46:43 -08:00
|
|
|
|
2024-03-07 22:27:02 +01:00
|
|
|
- In the dialog, select which user should own the new library
|
|
|
|
<img src={require('./img/library-owner.png').default} width="50%" title="Library owner diaglog" />
|
2023-12-15 10:46:43 -08:00
|
|
|
|
|
|
|
- Click the three-dots menu and select **Edit Import Paths**
|
|
|
|
<img src={require('./img/edit-import-paths.png').default} width="50%" title="Edit Import Paths menu option" />
|
|
|
|
|
|
|
|
- Click \*_Add path_
|
|
|
|
<img src={require('./img/add-path-button.png').default} width="50%" title="Add Path button" />
|
|
|
|
|
2024-01-09 16:32:30 +01:00
|
|
|
- Enter **/usr/src/app/external** as the path and click Add
|
2023-12-15 10:46:43 -08:00
|
|
|
<img src={require('./img/add-path-field.png').default} width="50%" title="Add Path field" />
|
|
|
|
|
|
|
|
- Save the new path
|
|
|
|
<img src={require('./img/path-save.png').default} width="50%" title="Path Save button" />
|
|
|
|
|
2023-12-17 07:46:29 -08:00
|
|
|
- Click the three-dots menu and select **Scan New Library Files**
|
2023-12-15 10:46:43 -08:00
|
|
|
<img src={require('./img/scan-new-library-files.png').default} width="50%" title="Scan New Library Files menu option" />
|
|
|
|
|
|
|
|
# Confirm stuff is happening
|
|
|
|
|
|
|
|
- Click **Administration**
|
|
|
|
<img src={require('./img/administration-link.png').default} width="50%" title="Administration link" />
|
|
|
|
|
|
|
|
- Select the **Jobs** tab
|
|
|
|
<img src={require('./img/jobs-tab.png').default} width="50%" title="Jobs tab" />
|
|
|
|
|
|
|
|
- You should see non-zero Active jobs for
|
|
|
|
Library, Generate Thumbnails, and Extract Metadata.
|
|
|
|
<img src={require('./img/job-status.png').default} width="50%" title="Job Status display" />
|