image:
  repository: tccr.io/truecharts/photoview
  tag: 2.3.12@sha256:84a2a71f6efdf659bbe127dc017cc4ef5fab34a20ba1d5c9c75321c2a75b9531
  pullPolicy: IfNotPresent

env:
  PHOTOVIEW_DATABASE_DRIVER: "postgres"
  PHOTOVIEW_LISTEN_PORT: "{{ .Values.service.main.ports.main.targetPort }}"
  PHOTOVIEW_MEDIA_CACHE: "/cache"
  MAPBOX_TOKEN: ""
  PHOTOVIEW_DISABLE_FACE_RECOGNITION: false
  PHOTOVIEW_DISABLE_VIDEO_ENCODING: false
  PHOTOVIEW_DISABLE_RAW_PROCESSING: false
  PHOTOVIEW_POSTGRES_URL:
    secretKeyRef:
      name: dbcreds
      key: url

service:
  main:
    ports:
      main:
        port: 10159
        targetPort: 10159

persistence:
# Don't use emptyDir, it stores, thumbnails and optimized media
  cache:
    enabled: true
    mountPath: "/cache"
  photos:
    enabled: true
    mountPath: "/photos"

postgresql:
  enabled: true
  existingSecret: "dbcreds"
  postgresqlUsername: photoview
  postgresqlDatabase: photoview
