fix: run postgres as uid 99/gid 100 to match Unraid NFS squash mapping
All checks were successful
Build containers when image tags change / build-if-image-changed (backend, shorefront-backend, shorefront backend, backend/Dockerfile, git.baumann.gr/adebaumann/shorefront-backend, .backend.image) (push) Successful in 12s
Build containers when image tags change / build-if-image-changed (frontend, shorefront-frontend, shorefront frontend, frontend/Dockerfile, git.baumann.gr/adebaumann/shorefront-frontend, .frontend.image) (push) Successful in 1m9s

This commit is contained in:
2026-03-01 00:02:12 +01:00
parent 271fec8da5
commit bd229d52a1
2 changed files with 6 additions and 3 deletions

View File

@@ -17,9 +17,9 @@ spec:
app: postgres
spec:
securityContext:
runAsUser: 70
runAsGroup: 70
fsGroup: 70
runAsUser: {{ .Values.postgres.runAsUser }}
runAsGroup: {{ .Values.postgres.runAsGroup }}
fsGroup: {{ .Values.postgres.runAsGroup }}
containers:
- name: postgres
image: "{{ .Values.postgres.image }}:{{ .Values.postgres.tag }}"

View File

@@ -19,6 +19,9 @@ postgres:
tag: "15-alpine"
database: shorefront
user: shorefront
# NFS squashes all writes to this uid/gid (Unraid default: nobody=99, gid=100)
runAsUser: 99
runAsGroup: 100
resources:
requests: { cpu: 100m, memory: 128Mi }
limits: { cpu: 500m, memory: 512Mi }