remove separate db deployment
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user