Add probes

Add arr stuff
This commit is contained in:
Marc Fokkert
2024-08-28 21:41:24 +02:00
parent cd0fa7b17d
commit 8385f55f10
16 changed files with 8912 additions and 661 deletions

44
ripe-atlas.tf Normal file
View File

@@ -0,0 +1,44 @@
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
]
}
}