Work on nginx loadbalancer and photoprism

This commit is contained in:
Marc Fokkert
2024-07-18 22:37:45 +02:00
parent cad0dc7f50
commit 00b369124d
9 changed files with 945 additions and 977 deletions

38
photoprism-tineke.tf Normal file
View File

@@ -0,0 +1,38 @@
resource "docker_container" "photoprism-tineke" {
image = docker_image.photoprism.image_id
name = "photoprism-tineke"
restart = "always"
env = [
"PHOTOPRISM_UPLOAD_NSFW=true",
"PHOTOPRISM_ADMIN_PASSWORD=pyjm73tM%UPa8B5t5zhWX*F",
"PHOTOPRISM_HTTP_HOSTNAME=photoprism-tineke.rescla.me",
"PHOTOPRISM_HTTP_HOST=192.168.2.132",
"PHOTOPRISM_DISABLE_TLS=true"
]
mounts {
target = "/photoprism/originals/capture-one-variants"
source = "/share/CaptureOne/Variants"
type = "bind"
}
mounts {
target = "/photoprism/storage"
source = "/share/appdata/photoprism-tineke/storage"
type = "bind"
}
networks_advanced {
name = docker_network.bridge.name
ipv4_address = "192.168.2.132"
}
lifecycle {
ignore_changes = [
ulimit,
log_opts
]
}
}