workout fix
This commit is contained in:
@@ -82,12 +82,16 @@ spec:
|
|||||||
initContainers:
|
initContainers:
|
||||||
- name: fix-permissions
|
- name: fix-permissions
|
||||||
image: alpine:latest
|
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:
|
securityContext:
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: static
|
- name: static
|
||||||
mountPath: /home/wger/static
|
mountPath: /home/wger/static
|
||||||
|
# ADD THIS: We need to fix the media volume too
|
||||||
|
- name: media
|
||||||
|
mountPath: /home/wger/media
|
||||||
containers:
|
containers:
|
||||||
- name: wger
|
- name: wger
|
||||||
image: wger/server:latest
|
image: wger/server:latest
|
||||||
@@ -134,7 +138,7 @@ spec:
|
|||||||
key: password
|
key: password
|
||||||
# Cache
|
# Cache
|
||||||
- name: DJANGO_CACHE_BACKEND
|
- name: DJANGO_CACHE_BACKEND
|
||||||
value: "django.core.cache.backends.redis.RedisCache"
|
value: "django_redis.cache.RedisCache"
|
||||||
- name: DJANGO_CACHE_LOCATION
|
- name: DJANGO_CACHE_LOCATION
|
||||||
value: "redis://wger-redis:6379/1"
|
value: "redis://wger-redis:6379/1"
|
||||||
- name: DJANGO_CACHE_CLIENT_CLASS
|
- name: DJANGO_CACHE_CLIENT_CLASS
|
||||||
@@ -266,7 +270,7 @@ spec:
|
|||||||
- name: CELERY_BACKEND
|
- name: CELERY_BACKEND
|
||||||
value: "redis://wger-redis:6379/2"
|
value: "redis://wger-redis:6379/2"
|
||||||
- name: DJANGO_CACHE_BACKEND
|
- name: DJANGO_CACHE_BACKEND
|
||||||
value: "django.core.cache.backends.redis.RedisCache"
|
value: "django_redis.cache.RedisCache"
|
||||||
- name: DJANGO_CACHE_LOCATION
|
- name: DJANGO_CACHE_LOCATION
|
||||||
value: "redis://wger-redis:6379/1"
|
value: "redis://wger-redis:6379/1"
|
||||||
resources:
|
resources:
|
||||||
|
|||||||
Reference in New Issue
Block a user