From 644481d706c8197c210ad7ee1c757b15a801e984 Mon Sep 17 00:00:00 2001 From: Grant <5445379+grantdhunter@users.noreply.github.com> Date: Thu, 12 Jun 2025 10:32:59 -0600 Subject: [PATCH] Fix matrix-registration volume mounts --- charts/matrix-registration/templates/config.yaml | 2 +- charts/matrix-registration/templates/deployment.yaml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/charts/matrix-registration/templates/config.yaml b/charts/matrix-registration/templates/config.yaml index 86b86e8..e645cf9 100644 --- a/charts/matrix-registration/templates/config.yaml +++ b/charts/matrix-registration/templates/config.yaml @@ -11,7 +11,7 @@ data: base_url: {{ .Values.serverBaseUrl }} client_redirect: 'https://app.element.io/#/login' client_logo: 'static/images/element-logo.png' # use '{cwd}' for current working directory - db: 'sqlite:///data/db.sqlite3' + db: 'sqlite:////data/db.sqlite3' host: '0.0.0.0' port: 5000 rate_limit: ["100 per day", "10 per minute"] diff --git a/charts/matrix-registration/templates/deployment.yaml b/charts/matrix-registration/templates/deployment.yaml index c43feb2..9f2d43e 100644 --- a/charts/matrix-registration/templates/deployment.yaml +++ b/charts/matrix-registration/templates/deployment.yaml @@ -26,14 +26,16 @@ spec: - image: zeratax/matrix-registration:{{ printf "v%s" .Chart.AppVersion }} imagePullPolicy: IfNotPresent name: matrix-registration - args: ["serve"] + args: ["serve", "--config-path", "/config/config.yaml"] ports: - containerPort: 5000 name: web protocol: TCP volumeMounts: - - mountPath: /data/config + - mountPath: /config name: matrix-registration + - mountPath: /data + name: data restartPolicy: Always volumes: - name: matrix-registration