add support for office docs to paperless-ngx

This commit is contained in:
2025-09-18 18:06:17 +05:30
parent 005f835d54
commit cec330916b
5 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: gotenberg-service
namespace: default
spec:
selector:
app: gotenberg
type: ClusterIP
ports:
- port: 3000
targetPort: 3000

View File

@@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: gotenberg
namespace: default
spec:
selector:
matchLabels:
app: gotenberg
template:
metadata:
labels:
app: gotenberg
spec:
securityContext:
runAsUser: 1001
containers:
- name: gotenberg
image: gotenberg/gotenberg:8.22
command:
- sh
- -c
- |
gotenberg --chromium-disable-javascript=true --chromium-allow-list=file:///tmp/.*
ports:
- containerPort: 3000
securityContext:
readOnlyRootFilesystem: false
allowPrivilegeEscalation: false
privileged: false

View File

@@ -41,6 +41,12 @@ spec:
value: "https://ngx.akshun-lab.cc"
- 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

View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: tika-service
namespace: default
spec:
type: ClusterIP
selector:
app: tika
ports:
- port: 9998
targetPort: 9998

View File

@@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: tika
namespace: default
spec:
selector:
matchLabels:
app: tika
template:
metadata:
labels:
app: tika
spec:
containers:
- name: tika
image: apache/tika:3.2.3.0
ports:
- containerPort: 9998