Replies: 2 comments 1 reply
-
I run postgres on a virtual machine so it's not part of the container setup. I didn't have to do any special things to get it running. In the .env file I added the host. I don't know if it works for Redis as wel. |
Beta Was this translation helpful? Give feedback.
-
Turns out postgres is already accessible via unix sockets. 🎉 In case someone is interested, here is my working configuration: |
Beta Was this translation helpful? Give feedback.
-
Thanks for creating this wonderful project!
I've managed to temporarily setup immich on my small ARM-based single board computer I use for my personal cloud to try immich. So far, I like it a lot - really impressive work!
However, properly selfhosting immich is difficult due to some inconveniences / missing features:
Thus, I'd be great if immich could use postgres & shared redis instances running directly on the host (or in other existing containers). For this, the redis service needs to be configurable (hostname, port, database index) - best case also supporting unix sockets because accessing the host from within docker containers while having an active firewall on the machine is really troublesome (and unix socket have slightly lower overhead compared to TCP). For postgres, again unix sockets would be great due to the same reasons (edit: for postgres, this is already possible, see my answer below).
Hosting internet-facing services with lots of potentially sensitive, private data is significantly safer with 2FA etc.
I'd be glad to create issues for the first 3 points with more details if needed.
By the way: Not really an issue, but I noticed high CPU-usage from npm during startup. Maybe it's building/transpiling the JS code? In that case, it would be better to deploy the pre-built release JS in the docker images. Maybe this also helps with running as non-root user?
Thanks again for the amazing work!
Beta Was this translation helpful? Give feedback.
All reactions