summaryrefslogtreecommitdiff
path: root/roles/apps/nextcloud/templates/pod-spec-with-mariadb.yml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/apps/nextcloud/templates/pod-spec-with-mariadb.yml.j2')
-rw-r--r--roles/apps/nextcloud/templates/pod-spec-with-mariadb.yml.j217
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/apps/nextcloud/templates/pod-spec-with-mariadb.yml.j2 b/roles/apps/nextcloud/templates/pod-spec-with-mariadb.yml.j2
index 725f84d9..983f363a 100644
--- a/roles/apps/nextcloud/templates/pod-spec-with-mariadb.yml.j2
+++ b/roles/apps/nextcloud/templates/pod-spec-with-mariadb.yml.j2
@@ -40,6 +40,19 @@ containers:
- containerPort: 8080
hostPort: {{ item.value.port }}
hostIP: 127.0.0.1
+- name: redis
+ image: "redis:{{ item.value.redis.version }}"
+ args:
+ - --bind 127.0.0.1
+ securityContext:
+ runAsUser: {{ nextcloud_redis_uid }}
+ runAsGroup: {{ nextcloud_redis_gid }}
+ resources:
+ limits:
+ memory: "512Mi"
+ volumeMounts:
+ - name: redis
+ mountPath: /data
- name: database
image: "mariadb:{{ item.value.database.version }}"
args:
@@ -75,6 +88,10 @@ volumes:
hostPath:
path: "{{ nextcloud_base_path }}/{{ item.key }}/nextcloud"
type: Directory
+- name: redis
+ hostPath:
+ path: "{{ nextcloud_base_path }}/{{ item.key }}/redis"
+ type: Directory
- name: database
hostPath:
path: "{{ nextcloud_base_path }}/{{ item.key }}/{{ item.value.database.type }}"