Add probes
Add arr stuff
This commit is contained in:
44
ripe-atlas.tf
Normal file
44
ripe-atlas.tf
Normal 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
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user