module "photoprism_module" { source = "./service" name = "photoprism" image = "photoprism/photoprism:240711" image_pull_timeout = "10m" # constraints = [{ # attribute = "$${meta.hw_transcode.type}" # # operator = "is_set" # value = "raspberry" # }] priority = 60 # docker_devices = [{ # host_path = "$${meta.hw_transcode.device}" # container_path = "$${meta.hw_transcode.device}" # }] resources = { cpu = 1500 memory = 2200 memory_max = 4000 } sticky_disk = true host_volumes = [ { name = "photoprism-storage" dest = "/photoprism-storage" read_only = false }, { name = "photoprism-media" dest = "/photoprism-media" read_only = false }, ] ingress = true service_port = 2342 use_wesher = var.use_wesher mysql_bootstrap = { enabled = true } env = { PHOTOPRISM_DEBUG = true # UI PHOTOPRISM_SITE_CAPTION = "AI-Powered Photos App" PHOTOPRISM_SITE_DESCRIPTION = "Fijolek home photos" PHOTOPRISM_SITE_TITLE = "PhotoPrism" PHOTOPRISM_SITE_URL = "https://photoprism.${var.base_hostname}/" PHOTOPRISM_SPONSOR = "true" # Worker config PHOTOPRISM_WORKERS = 2 PHOTOPRISM_BACKUP_DATABASE = false # Paths PHOTOPRISM_ORIGINALS_PATH = "/photoprism-media/Library" PHOTOPRISM_IMPORT_PATH = "/photoprism-media/Import" PHOTOPRISM_STORAGE_PATH = "/photoprism-storage" # Storage PATH for generated files like cache and thumbnails # Unix permissions PHOTOPRISM_UID = 500 PHOTOPRISM_GID = 100 PHOTOPRISM_UMASK = 0000 # OIDC PHOTOPRISM_OIDC_URI = "https://authelia.thefij.rocks" PHOTOPRISM_OIDC_PROVIDER = "Authelia" PHOTOPRISM_OIDC_REGISTER = true PHOTOPRISM_OIDC_REDIRECT = false PHOTOPRISM_OIDC_SCOPES = "openid email profile" } templates = [ { data = <