diff --git a/charts/stable/photoprism/Chart.yaml b/charts/stable/photoprism/Chart.yaml index b56def8f1f7..05bdc78ca74 100644 --- a/charts/stable/photoprism/Chart.yaml +++ b/charts/stable/photoprism/Chart.yaml @@ -3,7 +3,11 @@ appVersion: "20211018" dependencies: - name: common repository: https://truecharts.org - version: 8.9.3 + version: 8.9.4 +- condition: mariadb.enabled + name: mariadb + repository: https://truecharts.org/ + version: 1.0.14 description: "PhotoPrism\xC2\xAE is a server-based application for browsing, organizing\ \ and sharing your personal photo collection" home: https://github.com/truechartsapps/tree/master/charts/stable/photoprism @@ -22,7 +26,7 @@ name: photoprism sources: - https://github.com/photoprism/photoprism - https://hub.docker.com/r/photoprism/photoprism -version: 5.0.12 +version: 6.0.0 annotations: truecharts.org/catagories: | - media diff --git a/charts/stable/photoprism/values.yaml b/charts/stable/photoprism/values.yaml index 92f3e036ef1..8867e1ad8a5 100644 --- a/charts/stable/photoprism/values.yaml +++ b/charts/stable/photoprism/values.yaml @@ -47,6 +47,19 @@ env: GID: # 1000 # -- Sets UMASK. UMASK: # 0000 + PHOTOPRISM_DATABASE_DRIVER: "mysql" # Use MariaDB 10.5+ or MySQL 8+ instead of SQLite for improved performance + PHOTOPRISM_DATABASE_NAME: "photoprism" # MariaDB or MySQL database schema name + PHOTOPRISM_DATABASE_USER: "photoprism" # MariaDB or MySQL database user name + +envValueFrom: + PHOTOPRISM_DATABASE_SERVER: + secretKeyRef: + name: mariadbcreds + key: plainporthost + PHOTOPRISM_DATABASE_PASSWORD: + secretKeyRef: + name: mariadbcreds + key: mariadb-password # -- Configures service settings for the chart. # @default -- See values.yaml @@ -67,3 +80,9 @@ persistence: enabled: true mountPath: "/photoprism/temp" type: emptyDir + +mariadb: + enabled: true + mariadbUsername: photoprism + mariadbDatabase: photoprism + existingSecret: "mariadbcreds"