multiple external libraries in Docker #6912
|
Hello. I have immich setup in synology nas docker environment. Upon setup, I altered two files. The docker-compose.yml and the .env file. I followed the guide at immich to set up my external library and I have the .env pointed to /photos. https://immich.app/docs/guides/external-library immich scans the library and adds the photos as expected. What I'd like to do is add another share file from the NAS as another external library instead of copying over all my photos into /photo. How do you do this? My thoughts was to add another external path in the .env file EXTERNAL_PATH= where as the second external library would point to another share folder /photos2 Is this correct? The only parameter that designated where the external file is in the .env file. The server and microservices have - ${EXTERNAL_PATH}:/usr/src/app/external as instructed in the guide. I am guessing those stay the same since they point to the .env file to designate location of the path for the photos. any advice appreciated to add multiple external locations. This seems to be inclusive of Docker related installs |
Replies: 5 comments 20 replies
|
you can use multiple external libraries, for example I use or you can use multiple variables. here you see a (not used) |
|
I opened a ticket on Discord in the immich help desk. According to their advice, a user can only have one external library from the NAS. Your photos can be in many subdirectories, but only one main share folder. If you want to add a different shared folder, you have to log in as a different user. For me, I'll have to consolidate all my photos into the /photos folder in order to achieve access to multiple sub folders under one user. |
|
this is a wrong advice, you can have multiple external libraries. Maybe some misunderstanding? |
|
https://discord.com/channels/979116623879368755/1203772557078040659 BTW, the person who replied, wrote many of the articles at this website. https://immich.app/docs/overview/introduction |
|
@aisbergde Hello, I don't mean to hijack this discussion, but I am having the same issue supporting two external libraries from separate folder locations on my NAS. I believe it's my formatting of the docker-compose file, but banging my head understanding the root case on why it's not working As of right now this is the docker compose file in both services and microservices which works for just one external library: I tried following your formatting as: When rebuilding the docker container, I'm getting the following error:
My experience with Docker is limited. What am I missing? |







it is a misunderstanding.
Alex wrote (and this is correct), that you can have only one "external path" per user. For example my one (1) and only external path is
/usr/src/app/externalBut you can mount different NAS-folders into this virtual "external path", and this is what I tried to explain:
both are mounted inside immich under
/usr/src/app/external, but they are located on completely different places in the NAS file systemAnd now you can
/usr/src/app/externalas one external library