ImmichI
Immich12mo ago
feklee

Running as non-root: Can I just chown `library` & `postgres`?

In the documentation , it says: "You may need to add mount points or docker volumes for the following internal container paths:"

Instead of manually adding mount points, can I simply proceed as follows?

  1. Add: user: felix:felix to all containers: immich-server, immich-machine-learning, redis, and
    database
  1. (Add the recommended snippet for futher hardening to each container. See documentation This snippet sets security_opt and cap_drop.)
  2. Change owner: chown -R felix:felix library/ postgres/
  3. Restart Immich: docker compose up -d --force-recreate
I already have a running setup, currently as root and tens of thousands of raw image files indexed.
Was this page helpful?