59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: paperless-ngx
|
|
namespace: default
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: paperless-ngx
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: paperless-ngx
|
|
spec:
|
|
initContainers:
|
|
- name: paperless-ngx-db
|
|
image: docker.io/library/redis:7
|
|
restartPolicy: Always
|
|
ports:
|
|
- containerPort: 6379
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /data
|
|
subPath: redis
|
|
containers:
|
|
- name: paperless-ngx
|
|
image: ghcr.io/paperless-ngx/paperless-ngx:2.17.1
|
|
ports:
|
|
- containerPort: 8000
|
|
env:
|
|
- name: PAPERLESS_REDIS
|
|
value: "redis://localhost:6379"
|
|
- name: PAPERLESS_URL
|
|
value: "https://ngx.akshun-lab.uk"
|
|
- name: PAPERLESS_CSRF_TRUSTED_ORIGINS
|
|
value: "https://*.akshun-lab.uk"
|
|
- name: PAPERLESS_CORS_ALLOWED_HOSTS
|
|
value: "https://ngx.akshun-lab.uk"
|
|
- name: PAPERLESS_TIME_ZONE
|
|
value: "Asia/Kolkata"
|
|
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-ceph
|