infra/infra/nigel-nomad/sanity-service.nomad.hcl
shockrah a3fdc5fcc7
Some checks failed
Ansible Linting / ansible-lint (push) Failing after 4s
Secops Linting and Safety Checks / checkov-scan-s3 (push) Failing after 14s
Sanity check job with nomad :D
2025-05-10 15:38:16 -07:00

31 lines
640 B
HCL

# This 'service' job is just a simple nginx container that lives here as a kind of sanity check
# PORT: 8000
# DNS : sanity.nigel.local
job "health" {
type = "service"
group "health" {
count = 1
network {
port "http" {
static = 8000
to = 80
}
}
service {
name = "health-svc"
port = "http"
provider = "nomad"
}
task "health-setup" {
driver = "docker"
config {
image = "nginx:latest"
ports = [ "http" ]
}
}
}
}