This commit is contained in:
kento2 2026-08-16 00:26:34 +02:00
commit dede9ce18d
21 changed files with 485 additions and 0 deletions

39
jobs/nats.nomad.hcl Normal file
View file

@ -0,0 +1,39 @@
job "nats" {
type = "service"
group "nats" {
network {
mode = "host"
port "nats" {
to = 4222
}
}
task "nats" {
driver = "docker"
config {
image = "nats:alpine"
ports = ["nats"]
}
resources {
cpu = 500
memory = 1000
}
service {
name = "nats"
port = "nats"
provider = "consul"
check {
type = "tcp"
interval = "5s"
timeout = "1s"
}
}
}
}
}