open-nomad/command/assets/example-short.nomad
2019-11-19 10:36:41 -05:00

28 lines
360 B
HCL

job "example" {
datacenters = ["dc1"]
group "cache" {
task "redis" {
driver = "docker"
config {
image = "redis:3.2"
port_map {
db = 6379
}
}
resources {
cpu = 500
memory = 256
network {
mbits = 10
port "db" {}
}
}
}
}
}