Tune PhotoPrism
This commit is contained in:
parent
bb400a3f1c
commit
0d47a1f8c8
@ -53,6 +53,7 @@ job "mysql-server" {
|
|||||||
config {
|
config {
|
||||||
image = "mariadb:10"
|
image = "mariadb:10"
|
||||||
ports = ["db"]
|
ports = ["db"]
|
||||||
|
args = ["--innodb-buffer-pool-size=1G"]
|
||||||
}
|
}
|
||||||
|
|
||||||
vault {
|
vault {
|
||||||
|
@ -244,11 +244,14 @@ module "photoprism_module" {
|
|||||||
sticky_disk = true
|
sticky_disk = true
|
||||||
healthcheck_path = "/library/login"
|
healthcheck_path = "/library/login"
|
||||||
env = {
|
env = {
|
||||||
|
# UI
|
||||||
PHOTOPRISM_SITE_CAPTION = "AI-Powered Photos App"
|
PHOTOPRISM_SITE_CAPTION = "AI-Powered Photos App"
|
||||||
PHOTOPRISM_SITE_DESCRIPTION = "Fijolek home photos"
|
PHOTOPRISM_SITE_DESCRIPTION = "Fijolek home photos"
|
||||||
PHOTOPRISM_SITE_TITLE = "PhotoPrism"
|
PHOTOPRISM_SITE_TITLE = "PhotoPrism"
|
||||||
PHOTOPRISM_SITE_URL = "https://photoprism.thefij.rocks:2342/" # server URL in the format "http(s)://domain.name(:port)/(path)"
|
PHOTOPRISM_SITE_URL = "https://photoprism.thefij.rocks:2342/" # server URL in the format "http(s)://domain.name(:port)/(path)"
|
||||||
PHOTOPRISM_SPONSOR = "true"
|
PHOTOPRISM_SPONSOR = "true"
|
||||||
|
# Worker config
|
||||||
|
PHOTOPRISM_WORKERS = 2
|
||||||
# Paths
|
# Paths
|
||||||
PHOTOPRISM_ORIGINALS_PATH = "/photoprism-media/Library"
|
PHOTOPRISM_ORIGINALS_PATH = "/photoprism-media/Library"
|
||||||
PHOTOPRISM_IMPORT_PATH = "/photoprism-media/Import"
|
PHOTOPRISM_IMPORT_PATH = "/photoprism-media/Import"
|
||||||
@ -259,9 +262,9 @@ module "photoprism_module" {
|
|||||||
PHOTOPRISM_UMASK = 0000
|
PHOTOPRISM_UMASK = 0000
|
||||||
}
|
}
|
||||||
resources = {
|
resources = {
|
||||||
cpu = 100
|
cpu = 1000
|
||||||
memory = 500
|
memory = 2000
|
||||||
memory_max = 1000
|
# memory_max = 2000
|
||||||
}
|
}
|
||||||
use_mysql = true
|
use_mysql = true
|
||||||
use_vault = true
|
use_vault = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user