Work on nginx loadbalancer and photoprism
This commit is contained in:
38
photoprism-tineke.tf
Normal file
38
photoprism-tineke.tf
Normal 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
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user