feat(photoprism): use mariadb instead of sqllite (#1419)

* feat(photoprism): use mariadb instead of sqllite

BREAKING-CHANGE: will wipe data due to database change

* update common

* bump mariadb

* set existing secret
This commit is contained in:
Kjeld Schouten-Lebbing
2021-11-28 17:17:20 +01:00
committed by GitHub
parent 6a8c55f583
commit b515e52727
2 changed files with 25 additions and 2 deletions
+6 -2
View File
@@ -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
+19
View File
@@ -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"