ImmichI
Immich13mo ago
Arki

Setting up immich as non-root

Hi ! I try to setup immich as non-root, I follow the FAQ, but i struggle a bit with
You may need to add mount points or docker volumes for the following internal container paths:
"immich-machine-learning:/.config
immich-machine-learning:/.cache
redis:/data".

everything starts up but postgress, the logs says
"initdb: error: directory "/var/lib/postgresql/data" exists but is not empty".

I added this to my docker-compose.yml :
- /data/appdb/immichdb/redis-data:/data


What I tried :
  • Made sure everything woirks without any user changes
  • removed the whole immichdb folder, chown -R 1000:1000, chmod 755
The ML part also says
`
[12/21/24 12:09:25] WARNING  Matplotlib created a temporary cache directory at  
                             /tmp/matplotlib-16ixy51s because the default path  
                             (/.config/matplotlib) is not a writable directory; 
                             it is highly recommended to set the MPLCONFIGDIR   
                             environment variable to a writable directory, in   
                             particular to speed up the import of Matplotlib and
                             to better support multiprocessing.   


It seems like I messed up with permissions somewhere.

Here's my full compose.yml : https://pastebin.com/PktzRuav
And my .env : https://pastebin.com/b8jwzREB

Thanks !!
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Was this page helpful?