Move various servies to microos
This commit is contained in:
48
core-os-podman/smokeping.tf
Normal file
48
core-os-podman/smokeping.tf
Normal file
@@ -0,0 +1,48 @@
|
||||
data "docker_registry_image" "smokeping" {
|
||||
name = "linuxserver/smokeping:latest"
|
||||
}
|
||||
|
||||
resource "docker_image" "smokeping" {
|
||||
name = data.docker_registry_image.smokeping.name
|
||||
pull_triggers = [data.docker_registry_image.smokeping.sha256_digest]
|
||||
}
|
||||
|
||||
resource "docker_network" "smokeping" {
|
||||
name = "smokeping"
|
||||
}
|
||||
|
||||
resource "docker_container" "smokeping" {
|
||||
image = docker_image.smokeping.image_id
|
||||
name = "smokeping"
|
||||
env = [
|
||||
"TZ=Europe/Amsterdam"
|
||||
]
|
||||
|
||||
mounts {
|
||||
target = "/config"
|
||||
source = "/var/lib/containers/smokeping/config"
|
||||
type = "bind"
|
||||
}
|
||||
|
||||
mounts {
|
||||
target = "/data"
|
||||
source = "/var/lib/containers/smokeping/data"
|
||||
type = "bind"
|
||||
}
|
||||
|
||||
restart = "always"
|
||||
|
||||
networks_advanced {
|
||||
name = docker_network.container-public.name
|
||||
ipv4_address = "192.168.3.26"
|
||||
}
|
||||
|
||||
dns = ["172.20.0.0"]
|
||||
|
||||
lifecycle {
|
||||
ignore_changes = [
|
||||
ulimit,
|
||||
log_opts
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user