add paperless-ngx, tika and gotenberg
This commit is contained in:
75
clusters/default/tools/paperless-ngx/paperless-ngx.yml
Normal file
75
clusters/default/tools/paperless-ngx/paperless-ngx.yml
Normal file
@@ -0,0 +1,75 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: paperless-ngx
|
||||
namespace: tools
|
||||
spec:
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: paperless-ngx
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: paperless-ngx
|
||||
spec:
|
||||
initContainers:
|
||||
- name: paperless-ngx-db
|
||||
image: docker.io/library/redis:8
|
||||
restartPolicy: Always
|
||||
ports:
|
||||
- containerPort: 6379
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
subPath: redis
|
||||
containers:
|
||||
- name: paperless-ngx
|
||||
image: ghcr.io/paperless-ngx/paperless-ngx:2.18.4
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
env:
|
||||
- name: PAPERLESS_REDIS
|
||||
value: "redis://localhost:6379"
|
||||
- name: PAPERLESS_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: paperless-secrets
|
||||
key: PAPERLESS_URL
|
||||
- name: PAPERLESS_CSRF_TRUSTED_ORIGINS
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: paperless-secrets
|
||||
key: PAPERLESS_CSRF_TRUSTED_ORIGINS
|
||||
- name: PAPERLESS_CORS_ALLOWED_HOSTS
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: paperless-secrets
|
||||
key: PAPERLESS_URL
|
||||
- name: PAPERLESS_TIME_ZONE
|
||||
value: "Asia/Kolkata"
|
||||
- name: PAPERLESS_TIKA_ENABLED
|
||||
value: "1"
|
||||
- name: PAPERLESS_TIKA_ENDPOINT
|
||||
value: "http://tika-service:9998"
|
||||
- name: PAPERLESS_TIKA_GOTENBERG_ENDPOINT
|
||||
value: "http://gotenberg-service:3000"
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /usr/src/paperless/data
|
||||
subPath: data
|
||||
- name: data
|
||||
mountPath: usr/src/paperless/media
|
||||
subPath: media
|
||||
- name: data
|
||||
mountPath: /usr/src/paperless/export
|
||||
subPath: export
|
||||
- name: data
|
||||
mountPath: /usr/src/paperless/consume
|
||||
subPath: consume
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: paperless-longhorn
|
||||
Reference in New Issue
Block a user