Add hcl extention for nomad files
to get syntax highlighting be default.
This commit is contained in:
41
2-nomad-config/webapp.nomad.hcl
Normal file
41
2-nomad-config/webapp.nomad.hcl
Normal file
@@ -0,0 +1,41 @@
|
||||
job "demo-webapp" {
|
||||
group "demo" {
|
||||
count = 3
|
||||
|
||||
network {
|
||||
port "http"{
|
||||
to = -1
|
||||
}
|
||||
}
|
||||
|
||||
service {
|
||||
name = "demo-webapp"
|
||||
port = "http"
|
||||
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
]
|
||||
|
||||
check {
|
||||
type = "http"
|
||||
path = "/"
|
||||
interval = "2s"
|
||||
timeout = "2s"
|
||||
}
|
||||
}
|
||||
|
||||
task "server" {
|
||||
env {
|
||||
PORT = "${NOMAD_PORT_http}"
|
||||
NODE_IP = "${NOMAD_IP_http}"
|
||||
}
|
||||
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "hashicorp/demo-webapp-lb-guide"
|
||||
ports = ["http"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user