remove separate db deployment

This commit is contained in:
2025-05-27 18:43:22 +05:30
parent ae81318ed3
commit e9afe882e2
3 changed files with 12 additions and 53 deletions

View File

@@ -14,16 +14,14 @@ spec:
app: paperless-ngx
spec:
initContainers:
- name: wait-for-db
image: busybox
command:
- sh
- -c
- |
until nc -z -v -w30 paperless-ngx-db-service 6379; do
echo "Waiting for database to be ready..."
sleep 2
done
- name: paperless-ngx-db
image: docker.io/library/redis:7
restartPolicy: Always
ports:
- containerPort: 6379
volumeMounts:
- name: redis
mountPath: /data
containers:
- name: paperless-ngx
image: ghcr.io/paperless-ngx/paperless-ngx:2.16.2
@@ -31,7 +29,7 @@ spec:
- containerPort: 8000
env:
- name: PAPERLESS_REDIS
value: "redis://paperless-ngx-db-service:6379"
value: "redis://localhost:6379"
- name: PAPERLESS_URL
value: "https://ngx.akshun-lab.uk"
- name: PAPERLESS_CSRF_TRUSTED_ORIGINS
@@ -57,3 +55,6 @@ spec:
- name: data
persistentVolumeClaim:
claimName: longhorn-paperless-data
- name: redis
persistentVolumeClaim:
claimName: longhorn-paperless-redis