fix paperless, add gitignore and copyparty
This commit is contained in:
parent
feb383e8de
commit
01e214c4ab
3 changed files with 177 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +1,2 @@
|
|||
# temp/
|
||||
temp/
|
||||
secrets/
|
||||
|
|
|
|||
168
copyparty.yaml
Normal file
168
copyparty.yaml
Normal file
|
|
@ -0,0 +1,168 @@
|
|||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: copyparty
|
||||
name: copyparty
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: copyparty
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: copyparty
|
||||
spec:
|
||||
containers:
|
||||
- env:
|
||||
- name: LD_PRELOAD
|
||||
value: /usr/lib/libmimalloc-secure.so.2
|
||||
- name: PYTHONUNBUFFERED
|
||||
value: "1"
|
||||
image: copyparty/dj:latest
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- wget --spider -q 127.0.0.1:3923/?reset=/._
|
||||
failureThreshold: 5
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 60
|
||||
timeoutSeconds: 2
|
||||
name: copyparty
|
||||
ports:
|
||||
- containerPort: 3923
|
||||
protocol: TCP
|
||||
securityContext:
|
||||
runAsGroup: 1000
|
||||
runAsUser: 1000
|
||||
volumeMounts:
|
||||
- mountPath: /cfg
|
||||
name: copyparty-config-volume
|
||||
- mountPath: /raid
|
||||
name: copyparty-data-volume
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 15
|
||||
volumes:
|
||||
- name: copyparty-config-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: copyparty-config-pvc
|
||||
- name: copyparty-data-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: copyparty-data-pvc
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: copyparty
|
||||
name: copyparty-svc
|
||||
spec:
|
||||
ports:
|
||||
- name: "3923"
|
||||
port: 3923
|
||||
targetPort: 3923
|
||||
selector:
|
||||
app: copyparty
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: copyparty-http
|
||||
annotations:
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: web
|
||||
spec:
|
||||
rules:
|
||||
- host: files.reticulum.lan
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: copyparty-svc
|
||||
port:
|
||||
number: 3923
|
||||
- host: files.argentumcation.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: copyparty-svc
|
||||
port:
|
||||
number: 3923
|
||||
- host: files.xn--2dkua.xn--tckwe
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: copyparty-svc
|
||||
port:
|
||||
number: 3923
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: copyparty-config-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 100Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
storageClassName: ""
|
||||
nfs:
|
||||
path: /mnt/raid/00_meta/05_service_config/copyparty/
|
||||
server: 192.168.1.146
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: copyparty-data-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 100Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
storageClassName: ""
|
||||
nfs:
|
||||
path: /mnt/raid/
|
||||
server: 192.168.1.146
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
labels:
|
||||
app: copyparty-config
|
||||
name: copyparty-config-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Mi
|
||||
volumeName: copyparty-config-pv
|
||||
storageClassName: ""
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
labels:
|
||||
app: copyparty-data
|
||||
name: copyparty-data-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Mi
|
||||
volumeName: copyparty-data-pv
|
||||
storageClassName: ""
|
||||
|
|
@ -246,6 +246,8 @@ spec:
|
|||
resources:
|
||||
requests:
|
||||
storage: 100Mi
|
||||
volumeName: paperless-data-pv
|
||||
storageClassName: ""
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
|
|
@ -274,6 +276,8 @@ spec:
|
|||
resources:
|
||||
requests:
|
||||
storage: 100Mi
|
||||
volumeName: paperless-media-pv
|
||||
storageClassName: ""
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
|
|
@ -302,6 +306,8 @@ spec:
|
|||
resources:
|
||||
requests:
|
||||
storage: 100Mi
|
||||
storageClassName: ""
|
||||
volumeName: paperless-export-pv
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
|
|
@ -330,4 +336,6 @@ spec:
|
|||
resources:
|
||||
requests:
|
||||
storage: 100Mi
|
||||
storageClassName: ""
|
||||
volumeName: paperless-consume-pv
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue