.
This commit is contained in:
commit
dede9ce18d
21 changed files with 485 additions and 0 deletions
39
jobs/nats.nomad.hcl
Normal file
39
jobs/nats.nomad.hcl
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue