chore(linkwarden): optimize startup
All checks were successful
Renovate / renovate (push) Successful in 23s

This commit is contained in:
Peter 2024-05-07 18:39:14 +02:00
parent a9df520f9c
commit 7846f8c297
Signed by: prskr
GPG key ID: F56BED6903BC5E37

View file

@ -22,9 +22,15 @@ spec:
volumeMounts:
- name: node-cache
mountPath: /home/node/.cache
- name: run-prisma-migrations
image: linkwarden
command: ["/data/node_modules/.bin/prisma"]
args: ["migrate", "deploy"]
containers:
- name: linkwarden
image: linkwarden
command: ["/data/node_modules/.bin/next"]
args: ["start"]
env:
- name: DATABASE_URL
valueFrom:
@ -68,6 +74,36 @@ spec:
drop:
- ALL
readOnlyRootFilesystem: false
- name: linkwarden-worker
image: linkwarden
command: ["/data/node_modules/.bin/ts-node"]
args: ["--transpile-only", "--skip-project", "scripts/worker.ts"]
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: default-cluster-pguser-linkwarden
key: uri
envFrom:
- secretRef:
name: linkwarden-config
volumeMounts:
- name: next-cache
mountPath: /data/.next/cache
- name: node-cache
mountPath: /home/node/.cache
resources:
requests:
memory: "384Mi"
cpu: "50m"
limits:
memory: "1500Mi"
cpu: "500m"
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution: