fix(photoprism): fix GID/UID/UMASK warnings and explicit set HOME. (#1740)
* fix(photoprism): fix GID/UID/UMASK warnings and explicit set HOME. * cleanup * space * and line...
This commit is contained in:
@@ -26,7 +26,7 @@ name: photoprism
|
||||
sources:
|
||||
- https://github.com/photoprism/photoprism
|
||||
- https://hub.docker.com/r/photoprism/photoprism
|
||||
version: 7.0.16
|
||||
version: 7.0.17
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- media
|
||||
|
||||
@@ -1,47 +1,31 @@
|
||||
image:
|
||||
# -- image repository
|
||||
repository: tccr.io/truecharts/photoprism
|
||||
# -- image tag
|
||||
tag: v20220107@sha256:a6bfc44e4358341bd0e359d48805ff3b099e4ea3a4735ea843db0a766b06e4fe
|
||||
# -- image pull policy
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
securityContext:
|
||||
readOnlyRootFilesystem: false
|
||||
|
||||
secret:
|
||||
# -- Initial admin password. **BE SURE TO CHANGE THIS!**
|
||||
PHOTOPRISM_ADMIN_PASSWORD: "please-change"
|
||||
# -- environment variables. See [image docs](https://docs.photoprism.org/getting-started/config-options/) for more details.
|
||||
# @default -- See below
|
||||
env:
|
||||
# -- Set the container timezone
|
||||
HOME: "/photoprism"
|
||||
TZ: UTC
|
||||
# -- Photoprism originals path
|
||||
PHOTOPRISM_ORIGINALS_PATH: "/photoprism/originals"
|
||||
# -- Photoprism import path
|
||||
PHOTOPRISM_IMPORT_PATH: "/photoprism/import"
|
||||
# -- Photoprism temp path
|
||||
PHOTOPRISM_TEMP_PATH: "/photoprism/temp"
|
||||
# -- Photoprism storage path
|
||||
PHOTOPRISM_STORAGE_PATH: "/assets/storage"
|
||||
# -- Photoprism sidecar path
|
||||
PHOTOPRISM_SIDECAR_PATH: "/assets/sidecar"
|
||||
# -- Photoprism cache path
|
||||
PHOTOPRISM_CACHE_PATH: "/assets/cache"
|
||||
# -- Photoprism config path
|
||||
PHOTOPRISM_CONFIG_PATH: "/assets/config"
|
||||
# -- Photoprism backup path
|
||||
PROTOPRISM_BACKUP_PATH: "/assets/backup"
|
||||
# -- Disable authentication / password protection
|
||||
PHOTOPRISM_PUBLIC: false
|
||||
# -- Sets UID Photoprism runs under.
|
||||
UID: # 1000
|
||||
# -- Sets GID Photoprism runs under.
|
||||
GID: # 1000
|
||||
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
|
||||
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"
|
||||
|
||||
envValueFrom:
|
||||
PHOTOPRISM_DATABASE_SERVER:
|
||||
@@ -53,8 +37,6 @@ envValueFrom:
|
||||
name: mariadbcreds
|
||||
key: mariadb-password
|
||||
|
||||
# -- Configures service settings for the chart.
|
||||
# @default -- See values.yaml
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
@@ -62,8 +44,6 @@ service:
|
||||
port: 2342
|
||||
targetPort: 2342
|
||||
|
||||
# -- Configure persistence settings for the chart under this key.
|
||||
# @default -- See values.yaml
|
||||
persistence:
|
||||
storage:
|
||||
enabled: true
|
||||
|
||||
Reference in New Issue
Block a user