infrastructure/hammerhead/app/dummy-http-server/deploy/dummy-http-server.hcl
2021-05-08 14:25:56 +02:00

38 lines
690 B
HCL

job "dummy-http-server" {
datacenters = ["dc1"]
group "server-group" {
count = 5
# update {
# canary = 1
# max_parallel = 5
# }
network {
port "http" {}
}
service {
name = "dummy-http-server"
port = "http"
check {
type = "http"
path = "/health"
interval = "2s"
timeout = "2s"
}
}
task "server" {
driver = "docker"
config {
image = "hashicorp/http-echo:latest"
args = [
"-listen", ":${NOMAD_PORT_http}",
"-text", "Hello and welcome to ${NOMAD_IP_http}:${NOMAD_PORT_http}",
]
}
}
}
}