This commit is contained in:
Waylon Walker 2025-11-22 22:20:32 -06:00
parent 8c0277c8f3
commit 9e2c30af22
60 changed files with 8853 additions and 232 deletions

319
photoprism/deployment.yaml Normal file
View file

@ -0,0 +1,319 @@
---
apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -o deployment.yaml -n photoprism
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: mariadb
name: mariadb
namespace: photoprism
spec:
ports:
- name: "3306"
port: 3306
targetPort: 3306
selector:
io.kompose.service: mariadb
status:
loadBalancer: {}
---
apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -o deployment.yaml -n photoprism
kompose.service.expose: photoprism.wayl.one
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: photoprism
name: photoprism
namespace: photoprism
spec:
ports:
- name: "2342"
port: 2342
targetPort: 2342
selector:
io.kompose.service: photoprism
status:
loadBalancer: {}
---
apiVersion: v1
kind: Namespace
metadata:
creationTimestamp: null
name: photoprism
namespace: photoprism
spec: {}
status: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -o deployment.yaml -n photoprism
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: mariadb
name: mariadb
namespace: photoprism
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: mariadb
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -o deployment.yaml -n photoprism
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.network/photoprism-default: "true"
io.kompose.service: mariadb
spec:
containers:
- args:
- mariadbd
- --innodb-buffer-pool-size=512M
- --transaction-isolation=READ-COMMITTED
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --max-connections=512
- --innodb-rollback-on-timeout=OFF
- --innodb-lock-wait-timeout=120
env:
- name: MARIADB_AUTO_UPGRADE
value: "1"
- name: MARIADB_DATABASE
value: photoprism
- name: MARIADB_INITDB_SKIP_TZINFO
value: "1"
- name: MARIADB_PASSWORD
value: insecure
- name: MARIADB_ROOT_PASSWORD
value: insecure
- name: MARIADB_USER
value: photoprism
image: mariadb:10.11
name: mariadb
ports:
- containerPort: 3306
protocol: TCP
resources: {}
volumeMounts:
- mountPath: /var/lib/mysql
name: photoprism-db
restartPolicy: Always
terminationGracePeriodSeconds: 5
volumes:
- name: photoprism-db
persistentVolumeClaim:
claimName: photoprism-db
status: {}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: photoprism-db
name: photoprism-db
namespace: photoprism
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
status: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -o deployment.yaml -n photoprism
kompose.service.expose: photoprism.wayl.one
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: photoprism
name: photoprism
namespace: photoprism
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: photoprism
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -o deployment.yaml -n photoprism
kompose.service.expose: photoprism.wayl.one
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.network/photoprism-default: "true"
io.kompose.service: photoprism
spec:
containers:
- env:
- name: PHOTOPRISM_ADMIN_PASSWORD
value: insecure
- name: PHOTOPRISM_ADMIN_USER
value: admin
- name: PHOTOPRISM_AUTH_MODE
value: password
- name: PHOTOPRISM_DATABASE_DRIVER
value: mysql
- name: PHOTOPRISM_DATABASE_NAME
value: photoprism
- name: PHOTOPRISM_DATABASE_PASSWORD
value: insecure
- name: PHOTOPRISM_DATABASE_SERVER
value: mariadb:3306
- name: PHOTOPRISM_DATABASE_USER
value: photoprism
- name: PHOTOPRISM_DEFAULT_TLS
value: "true"
- name: PHOTOPRISM_DETECT_NSFW
value: "false"
- name: PHOTOPRISM_DISABLE_CHOWN
value: "false"
- name: PHOTOPRISM_DISABLE_CLASSIFICATION
value: "false"
- name: PHOTOPRISM_DISABLE_FACES
value: "false"
- name: PHOTOPRISM_DISABLE_RAW
value: "false"
- name: PHOTOPRISM_DISABLE_SETTINGS
value: "false"
- name: PHOTOPRISM_DISABLE_TENSORFLOW
value: "false"
- name: PHOTOPRISM_DISABLE_TLS
value: "false"
- name: PHOTOPRISM_DISABLE_VECTORS
value: "false"
- name: PHOTOPRISM_DISABLE_WEBDAV
value: "false"
- name: PHOTOPRISM_EXPERIMENTAL
value: "false"
- name: PHOTOPRISM_HTTP_COMPRESSION
value: gzip
- name: PHOTOPRISM_JPEG_QUALITY
value: "85"
- name: PHOTOPRISM_LOG_LEVEL
value: info
- name: PHOTOPRISM_ORIGINALS_LIMIT
value: "5000"
- name: PHOTOPRISM_RAW_PRESETS
value: "false"
- name: PHOTOPRISM_READONLY
value: "false"
- name: PHOTOPRISM_SITE_AUTHOR
- name: PHOTOPRISM_SITE_CAPTION
value: AI-Powered Photos App
- name: PHOTOPRISM_SITE_DESCRIPTION
- name: PHOTOPRISM_SITE_URL
value: https://photoprism.wayl.one
- name: PHOTOPRISM_UPLOAD_NSFW
value: "true"
image: photoprism/photoprism:latest
name: photoprism
ports:
- containerPort: 2342
protocol: TCP
resources: {}
volumeMounts:
- mountPath: /photoprism/originals
name: photoprism-originals
- mountPath: /photoprism/storage
name: photoprism-storage
workingDir: /photoprism
restartPolicy: Always
terminationGracePeriodSeconds: 10
volumes:
- name: photoprism-originals
persistentVolumeClaim:
claimName: photoprism-originals
- name: photoprism-storage
persistentVolumeClaim:
claimName: photoprism-storage
status: {}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kompose.cmd: kompose convert -o deployment.yaml -n photoprism
kompose.service.expose: photoprism.wayl.one
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: photoprism
name: photoprism
namespace: photoprism
spec:
rules:
- host: photoprism.wayl.one
http:
paths:
- backend:
service:
name: photoprism
port:
number: 2342
path: /
pathType: Prefix
status:
loadBalancer: {}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: photoprism-originals
name: photoprism-originals
namespace: photoprism
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
status: {}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: photoprism-storage
name: photoprism-storage
namespace: photoprism
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
status: {}