From bb0aacd6c81ba7418fbdd2a3512cfae0a665b382 Mon Sep 17 00:00:00 2001 From: Bill Sideris Date: Tue, 14 Jun 2022 09:01:38 +0300 Subject: [PATCH] Note about USER_UID/GID env vars. --- Kubernetes-server-installation.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Kubernetes-server-installation.md b/Kubernetes-server-installation.md index 7d62cc4..d8a7a27 100644 --- a/Kubernetes-server-installation.md +++ b/Kubernetes-server-installation.md @@ -5,7 +5,8 @@ The recommended way is helm. # Root privileges -Trilium docker container needs to be run with root privileges. The node process inside the container will be started with reduced privileges (uid 1000) after some initialization logic. Make sure that you don't use a security context which changes the user id. +Trilium docker container needs to be run with root privileges. The node process inside the container will be started with reduced privileges (uid:gid 1000:1000) after some initialization logic. Make sure that you don't use a security context which changes the user id. +To use a different uid:gid for file storage and the application, please use the USER_UID & USER_GID environment variables. The docker image will also fix the permissions of /home/node so you don't have to use an init container.