Immich and Security

A question regarding Docker container security.

Does Immich suport the following format in the docker-compose file?

    environment:
      - PUID=1002
      - PGID=1000

The use of PUID and PGID then allows an administrator to lock down the library/ directory by assigning permissions to that directory and it's sub-directories. At the moment the permissions associated with the library directory are linked to the root account and are as follows
drwxr-xr-x 8 root root 4096 Jun  7 09:21 library


I'm not so sure that this a reasonable option. Any thoughts or suggestions?

UPDATE:
So, I guess what I'm wondering, is it possible to setup permissions for the library directory as
drwxr-xr-x 8 immich media 4096 Jun  7 09:21 library

where the owner is immich and the group is media
Was this page helpful?