Compare commits

...

2 Commits

Author SHA1 Message Date
bd229d52a1 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
2026-03-01 00:02:12 +01:00
271fec8da5 fix: add JWT_SECRET_KEY to migrate init container; run postgres as uid 70 to avoid NFS chown failure 2026-02-28 23:53:03 +01:00
3 changed files with 14 additions and 0 deletions

View File

@@ -26,6 +26,11 @@ spec:
secretKeyRef:
name: shorefront-secret
key: POSTGRES_PASSWORD
- name: JWT_SECRET_KEY
valueFrom:
secretKeyRef:
name: shorefront-secret
key: JWT_SECRET_KEY
- name: DATABASE_URL
value: "postgresql://{{ .Values.postgres.user }}:$(POSTGRES_PASSWORD)@postgres:5432/{{ .Values.postgres.database }}"
containers:

View File

@@ -16,6 +16,10 @@ spec:
labels:
app: postgres
spec:
securityContext:
runAsUser: {{ .Values.postgres.runAsUser }}
runAsGroup: {{ .Values.postgres.runAsGroup }}
fsGroup: {{ .Values.postgres.runAsGroup }}
containers:
- name: postgres
image: "{{ .Values.postgres.image }}:{{ .Values.postgres.tag }}"
@@ -35,6 +39,8 @@ spec:
secretKeyRef:
name: shorefront-secret
key: POSTGRES_PASSWORD
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
ports:
- containerPort: 5432
volumeMounts:

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 }