47 lines
854 B
HCL
47 lines
854 B
HCL
data "docker_registry_image" "configarr" {
|
|
name = "ghcr.io/raydak-labs/configarr:latest"
|
|
}
|
|
|
|
resource "docker_image" "configarr" {
|
|
name = data.docker_registry_image.configarr.name
|
|
pull_triggers = [data.docker_registry_image.configarr.sha256_digest]
|
|
}
|
|
|
|
resource "docker_container" "configarr" {
|
|
image = docker_image.configarr.image_id
|
|
name = "configarr"
|
|
# restart = "always"
|
|
|
|
log_driver = "local"
|
|
|
|
env = [
|
|
"TZ=Europe/Amsterdam"
|
|
]
|
|
|
|
mounts {
|
|
target = "/app/config"
|
|
source = "/share/appdata/configarr/config"
|
|
type = "bind"
|
|
}
|
|
|
|
|
|
mounts {
|
|
target = "/app/cfs"
|
|
source = "/share/appdata/configarr/cfs"
|
|
type = "bind"
|
|
}
|
|
|
|
mounts {
|
|
target = "/app/templates"
|
|
source = "/share/appdata/configarr/templates"
|
|
type = "bind"
|
|
}
|
|
|
|
lifecycle {
|
|
ignore_changes = [
|
|
ulimit,
|
|
log_opts
|
|
]
|
|
}
|
|
}
|