Files
qnap-containers/ripe-atlas.tf
Marc Fokkert 8385f55f10 Add probes
Add arr stuff
2024-08-28 21:41:29 +02:00

45 lines
869 B
HCL

data "docker_registry_image" "ripe-atlas" {
name = "jamesits/ripe-atlas:latest"
}
resource "docker_image" "ripe-atlas" {
name = data.docker_registry_image.ripe-atlas.name
pull_triggers = [data.docker_registry_image.ripe-atlas.sha256_digest]
}
resource "docker_container" "ripe-atlas" {
image = docker_image.ripe-atlas.image_id
name = "ripe-atlas"
restart = "always"
log_driver = "local"
# env = [
# "RXTXRPT=yes",
# ]
mounts {
target = "/var/atlas-probe/etc"
source = "/share/appdata/atlas-probe/etc"
type = "bind"
}
mounts {
target = "/var/atlas-probe/status"
source = "/share/appdata/atlas-probe/status"
type = "bind"
}
capabilities {
drop = ["ALL"]
add = ["CHOWN", "SETUID", "SETGID", "DAC_OVERRIDE", "NET_RAW"]
}
lifecycle {
ignore_changes = [
ulimit,
log_opts
]
}
}