workout fix

This commit is contained in:
2026-01-02 19:01:08 +01:00
parent f982a5e96e
commit 8f2242d758
+7 -3
View File
@@ -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: