paperless restructure
This commit is contained in:
@ -2,14 +2,14 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: paperless-service
|
app: paperless
|
||||||
name: paperless-service
|
name: paperless
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: 80
|
port: 80
|
||||||
targetPort: http
|
targetPort: http
|
||||||
selector:
|
selector:
|
||||||
app: paperless-webserver
|
app: paperless
|
||||||
status:
|
status:
|
||||||
loadBalancer: {}
|
loadBalancer: {}
|
89
apps/paperless/base/app.yaml
Normal file
89
apps/paperless/base/app.yaml
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: paperless
|
||||||
|
name: paperless
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: paperless
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: paperless
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: ghcr.io/paperless-ngx/paperless-ngx:latest
|
||||||
|
name: paperless
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 8000
|
||||||
|
protocol: TCP
|
||||||
|
resources:
|
||||||
|
limits: {}
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /usr/src/paperless/data
|
||||||
|
name: paperless-pvc
|
||||||
|
subPath: 716a7a59-c361-48a1-ae89-f935919f7e59/app
|
||||||
|
- mountPath: /usr/src/paperless/media
|
||||||
|
name: paperless-media
|
||||||
|
- mountPath: /usr/src/paperless/consume
|
||||||
|
name: paperless-pvc
|
||||||
|
subPath: 716a7a59-c361-48a1-ae89-f935919f7e59/consume
|
||||||
|
env:
|
||||||
|
- name: DEBUG
|
||||||
|
value: "false"
|
||||||
|
- name: PAPERLESS_ALLOWED_HOSTS
|
||||||
|
value: steffenillium.de,localhost
|
||||||
|
- name: PAPERLESS_CONSUMER_POLLING
|
||||||
|
value: "20"
|
||||||
|
- name: PAPERLESS_CONSUMER_RECURSIVE
|
||||||
|
value: "true"
|
||||||
|
- name: PAPERLESS_CORS_ALLOWED_HOSTS
|
||||||
|
value: http://localhost:8000
|
||||||
|
- name: PAPERLESS_DBHOST
|
||||||
|
value: localhost
|
||||||
|
- name: PAPERLESS_ENABLE_HTTP_REMOTE_USER
|
||||||
|
value: "true"
|
||||||
|
- name: PAPERLESS_OCR_LANGUAGE
|
||||||
|
value: deu
|
||||||
|
- name: PAPERLESS_OCR_LANGUAGES
|
||||||
|
value: eng deu
|
||||||
|
- name: PAPERLESS_OCR_ROTATE_PAGES
|
||||||
|
value: "true"
|
||||||
|
- name: PAPERLESS_OCR_ROTATE_PAGES_THRESHOLD
|
||||||
|
value: "10"
|
||||||
|
- name: PAPERLESS_REDIS
|
||||||
|
value: redis://localhost:6379
|
||||||
|
- name: PAPERLESS_TIME_ZONE
|
||||||
|
value: Europe/Berlin
|
||||||
|
- name: PAPERLESS_URL
|
||||||
|
value: https://documents.steffenillium.de
|
||||||
|
- name: PAPERLESS_SECRET_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: paperless-secret
|
||||||
|
key: PAPERLESS_SECRET_KEY
|
||||||
|
- image: docker.io/library/redis:7
|
||||||
|
name: paperless-broker
|
||||||
|
ports:
|
||||||
|
- containerPort: 6379
|
||||||
|
protocol: TCP
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: "0.1"
|
||||||
|
memory: "250M"
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- name: paperless-pvc
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: paperless-pvc
|
||||||
|
- name: paperless-media
|
||||||
|
nfs:
|
||||||
|
server: 192.168.178.4
|
||||||
|
path: /mnt/storage/service/paperless/media
|
||||||
|
readOnly: false
|
15
apps/paperless/base/database-service.yaml
Normal file
15
apps/paperless/base/database-service.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: database
|
||||||
|
name: database
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 5432
|
||||||
|
targetPort: http
|
||||||
|
selector:
|
||||||
|
app: database
|
||||||
|
status:
|
||||||
|
loadBalancer: {}
|
@ -19,10 +19,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- image: docker.io/library/postgres:13
|
- image: docker.io/library/postgres:13
|
||||||
name: paperless-db
|
name: paperless-db
|
||||||
resources:
|
resources: {}
|
||||||
limits:
|
|
||||||
cpu: "0.2"
|
|
||||||
memory: "1G"
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/lib/postgresql/data
|
- mountPath: /var/lib/postgresql/data
|
||||||
name: paperless-pvc
|
name: paperless-pvc
|
@ -5,10 +5,12 @@ namespace: paperless
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
- base/pvc.yaml
|
- base/pvc.yaml
|
||||||
- base/paperless-secret-sealed.yaml
|
- base/secret-sealed.yaml
|
||||||
- base/ingress.yaml
|
- base/ingress.yaml
|
||||||
- base/paperless-service.yaml
|
- base/app-service.yaml
|
||||||
- base/deployment.yaml
|
- base/database-service.yaml
|
||||||
|
- base/app.yaml
|
||||||
|
- base/database.yaml
|
||||||
- base/namespace.yaml
|
- base/namespace.yaml
|
||||||
|
|
||||||
components:
|
components:
|
||||||
|
@ -5,7 +5,7 @@ metadata:
|
|||||||
namespace: traefik
|
namespace: traefik
|
||||||
spec:
|
spec:
|
||||||
minReadySeconds: 0
|
minReadySeconds: 0
|
||||||
replicas: 1
|
replicas: 3
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: traefik
|
app: traefik
|
||||||
|
Reference in New Issue
Block a user