From 8f2242d75897e13bb4608cc8e9d9d7738ca3dbd3 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Fri, 2 Jan 2026 19:01:08 +0100 Subject: [PATCH] workout fix --- workout-system/workout.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/workout-system/workout.yaml b/workout-system/workout.yaml index a147ffe..df5a6c9 100644 --- a/workout-system/workout.yaml +++ b/workout-system/workout.yaml @@ -82,12 +82,16 @@ spec: initContainers: - name: fix-permissions image: alpine:latest - command: ["sh", "-c", "rm -rf /home/wger/static/lost+found"] + # Change ownership of both folders to user 1000 (wger) + command: ["sh", "-c", "chown -R 1000:1000 /home/wger/static /home/wger/media"] securityContext: runAsUser: 0 volumeMounts: - name: static mountPath: /home/wger/static + # ADD THIS: We need to fix the media volume too + - name: media + mountPath: /home/wger/media containers: - name: wger image: wger/server:latest @@ -134,7 +138,7 @@ spec: key: password # Cache - name: DJANGO_CACHE_BACKEND - value: "django.core.cache.backends.redis.RedisCache" + value: "django_redis.cache.RedisCache" - name: DJANGO_CACHE_LOCATION value: "redis://wger-redis:6379/1" - name: DJANGO_CACHE_CLIENT_CLASS @@ -266,7 +270,7 @@ spec: - name: CELERY_BACKEND value: "redis://wger-redis:6379/2" - name: DJANGO_CACHE_BACKEND - value: "django.core.cache.backends.redis.RedisCache" + value: "django_redis.cache.RedisCache" - name: DJANGO_CACHE_LOCATION value: "redis://wger-redis:6379/1" resources: