workout fix
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user