this post was submitted on 05 May 2026
16 points (100.0% liked)

Selfhosted

56958 readers
725 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Hey all, I did check for an immich sub first, but you smart people seem to be my only option now reddit has banned me for refusing to give them an email address.

Background: So, I have a Ugreen DH2300 NAS it runs a cut down version of debian. I've got docker running on it, which is happily hosting Jellyfin. Basic config of the drive volume is from root I have a docker tree and also a data tree. Immich & Jellyfin under docker, movies pictures tvshows books under data. I have pictures indexed by Jellyfin and it works but it isn't great. I have a vanilla copy of immich up and running, I can upload via web browser a pic at a time. The vanilla config puts those files in ./volume1/docker/immich/library/upload/very-long-random-number-directory

Where volume1 is the mounted displayed nas volume (from the nas host it's /mnt/volume1 if you ssh in)

Problem:

I have a terabyte of pictures under ./volume1/data/Pictures that is not visible in docker

Importing 1 by 1 via web browser is obviously not ideal. It also copies the set of pictures from one directory on the NAS volume to a duplicate under library/upload - not great for space.

I've seen the CLI tool exists and if I ssh into the NAS I can see the /Pictures directory as well as the docker/immich/library etc directory but it also has the downside of duplicating all the photos into the immich directory

Ideally I'd like to just index it like jellyfin does when you add files to movies or tv shows. I can't seem to even find a way to point the docker instance to the folder (i modified the .env file but it ignored it, so obviously got that wrong).

Is this the only way ?

EDIT Thank you all for the quick responses - I somehow managed to break the container altogether, so I'll reinstall from scratch and then add your suggested "external folders" config and see how I go.

Thanks again

top 5 comments
sorted by: hot top controversial new old
[–] starshipwinepineapple@programming.dev 14 points 1 hour ago* (last edited 1 hour ago) (2 children)

In your docker-compose.yaml you need to add in your directory if you haven't already

services:
  immich-server:
    volumes:
      # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
+     # Add NAS pictures and videos folders to use as External Libraries
+     - "/volume1/data/ Pictures:/usr/src/app/library/pictures"

Then in immich you need to add this as an external library. Click your profile icon -> administration -> external library -> create library. It will ask for a path and you need to use the library mount point within docker which was /usr/src/app/library/pictures from my example. Click add path

That should get you good to go

[–] Strit@lemmy.linuxuserspace.show 2 points 23 minutes ago

This is the way to do it.

Although, I can't get it to do facial recognision on my external library for some reason.

[–] thanksforallthefish@literature.cafe 1 points 14 minutes ago

Thank you so much for the quick reply, I have somehow managed to totally break the installation altogether (it's now bootlooping), so I'll kill it recreate and try the above and report back.

Much appreciated

You could add your existing photo folder as an external library.

[–] cRazi_man@europe.pub 3 points 1 hour ago

You can add a folder to Immich as an external database. I didn't want Immich to upload in the way you describe, so I stopped Immich auto upload and use a different solution to upload files onto my NAS in a normal folder structure and date/naming system. Then Immich just scans these folders every 6 hours to add photos into the library. This external folder is added in volumes under immich-server and immich-machine-learning. It has been working fine so far.