From 8ff45a8c01f89545e59ef56f27c18fb29d029aa3 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 17 Oct 2024 09:05:56 -0500 Subject: [PATCH] paperless-ngx/gotenberg: Run as correct user The Gotenberg container image uses UID 1001 for the _gotenberg_ user. Using any other UID number, even when the home directory is set and owned by that UID, results in random issues, especially when using LibreOffice conversions. --- paperless-ngx/gotenberg.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/paperless-ngx/gotenberg.yaml b/paperless-ngx/gotenberg.yaml index d3d3b75..263e812 100644 --- a/paperless-ngx/gotenberg.yaml +++ b/paperless-ngx/gotenberg.yaml @@ -53,13 +53,17 @@ spec: securityContext: runAsNonRoot: true readOnlyRootFilesystem: true - runAsUser: 1000 - runAsGroup: 1000 + runAsUser: 1001 + runAsGroup: 1001 volumeMounts: - - name: tmp - mountPath: /tmp + - mountPath: /home/gotenberg + name: tmp + subPath: home + - mountPath: /tmp + name: tmp + subPath: tmp securityContext: - fsGroup: 1000 + fsGroup: 1001 volumes: - name: tmp emptyDir: