Docker UPLOAD_LOCATION env variable #27322
-
|
Hi, Sorry for the many edits, I can't get code-blocks to parse properly...
I have immich running on pool 2, as a result all mobile immich uploads end up in ./library/uploads. However, I want to move these uploads to my other storage pool. I've searched the internet and this forum, and I found workarounds, but no real solution imho. I tried different setting in both docker_compose and the .env file, but I cannot for the life of me get this to work. Sorry, I'm pretty new to this .env impact. In my compose file I have: As the comment states, I cannot change that particular line, so I edited the .env file: This errors out as follows: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
To fix this error, ensure your new storage path is properly initialized and has the correct permissions for the Docker containers to access it. Update
|
Beta Was this translation helpful? Give feedback.
-
|
Hi! Thank you so much for your reply! This cleared the error messages regarding the uploads folder. However after starting immich, it threw a new error: I read: https://docs.immich.app/guides/custom-locations/, which states: |
Beta Was this translation helpful? Give feedback.

Ah I see the issue — Immich puts mobile uploads at
/usr/src/app/upload/upload, not/upload/library. So the volume mount needs to target that exact path:That'll redirect mobile uploads to your HDD (volume1) while everything else stays on the SSD. After changing it, do a full restart (
docker compose down && docker compose up -d) so the new mount takes effect.You can verify it's working by uploading a test photo from the app and checking
ls /volume1/Media/Uploads/on your NAS — you should see the user UUID folder appear there.