Add hcl extention for nomad files

to get syntax highlighting be default.
This commit is contained in:
2025-04-29 20:58:59 +10:00
parent a36f10ef73
commit 05771d891b
6 changed files with 16 additions and 14 deletions

View 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"]
}
}
}
}