image:
  repository: tccr.io/truecharts/photoprism
  tag: v220629@sha256:0eec07b0c3bec89178ab6bd5b704feae4e6b7297577b81aaa789ef6e57f36000
  pullPolicy: IfNotPresent

securityContext:
  readOnlyRootFilesystem: false

secretEnv:
  PHOTOPRISM_ADMIN_PASSWORD: "please-change"

env:
  HOME: "/photoprism"
  PHOTOPRISM_ORIGINALS_PATH: "/photoprism/originals"
  PHOTOPRISM_IMPORT_PATH: "/photoprism/import"
  PHOTOPRISM_TEMP_PATH: "/photoprism/temp"
  PHOTOPRISM_STORAGE_PATH: "/assets/storage"
  PHOTOPRISM_SIDECAR_PATH: "/assets/sidecar"
  PHOTOPRISM_CACHE_PATH: "/assets/cache"
  PHOTOPRISM_CONFIG_PATH: "/assets/config"
  PROTOPRISM_BACKUP_PATH: "/assets/backup"
  PHOTOPRISM_PUBLIC: false
  PHOTOPRISM_UID: "{{ .Values.podSecurityContext.runAsUser }}"
  PHOTOPRISM_GID: "{{ .Values.podSecurityContext.runAsGroup }}"
  PHOTOPRISM_UMASK: "{{ .Values.env.UMASK }}"
  PHOTOPRISM_DATABASE_DRIVER: "mysql"
  PHOTOPRISM_DATABASE_NAME: "photoprism"
  PHOTOPRISM_DATABASE_USER: "photoprism"
  PHOTOPRISM_DATABASE_SERVER:
    secretKeyRef:
      name: mariadbcreds
      key: plainporthost
  PHOTOPRISM_DATABASE_PASSWORD:
    secretKeyRef:
      name: mariadbcreds
      key: mariadb-password

service:
  main:
    ports:
      main:
        port: 2342
        targetPort: 2342

persistence:
  storage:
    enabled: true
    mountPath: "/assets"
  temp:
    enabled: true
    mountPath: "/photoprism/temp"
    type: emptyDir

mariadb:
  enabled: true
  mariadbUsername: photoprism
  mariadbDatabase: photoprism
  existingSecret: "mariadbcreds"
