From 70ce44a7bcd2a8d2f4850a5cc4572a5b21f34b07 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Tue, 7 May 2024 18:42:58 +0200 Subject: [PATCH] fix(linkwarden): set DB URL for prisma --- linkwarden/resources/deployment.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/linkwarden/resources/deployment.yaml b/linkwarden/resources/deployment.yaml index f9a62b2..21db38f 100644 --- a/linkwarden/resources/deployment.yaml +++ b/linkwarden/resources/deployment.yaml @@ -16,16 +16,22 @@ spec: app.kubernetes.io/name: linkwarden spec: initContainers: - - name: install-packages - image: linkwarden - command: ["/bin/bash", "-c", "npx playwright install"] - volumeMounts: - - name: node-cache - mountPath: /home/node/.cache + # - name: install-packages + # image: linkwarden + # command: ["/bin/bash", "-c", "npx playwright install"] + # volumeMounts: + # - name: node-cache + # mountPath: /home/node/.cache - name: run-prisma-migrations image: linkwarden command: ["/data/node_modules/.bin/prisma"] args: ["migrate", "deploy"] + env: + - name: DATABASE_URL + valueFrom: + secretKeyRef: + name: default-cluster-pguser-linkwarden + key: uri containers: - name: linkwarden image: linkwarden