Skip to content

Commit

Permalink
feat: add basic webserver job
Browse files Browse the repository at this point in the history
Signed-off-by: Bruce Becker <[email protected]>
  • Loading branch information
brucellino committed Apr 18, 2022
1 parent 6228cbf commit 66331c0
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions webserver.nomad
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
job "webserver" {
datacenters = ["dc1"]

group "webserver" {
task "server" {
driver = "docker"

config {
image = "hashicorp/demo-prometheus-instrumentation:latest"
}

resources {
cpu = 500
memory = 256

network {
port "http" {}
}
}

service {
name = "webserver"
port = "http"

tags = [
"testweb",
"urlprefix-/webserver strip=/webserver",
]

check {
type = "http"
path = "/"
interval = "2s"
timeout = "2s"
}
}
}
}
}

0 comments on commit 66331c0

Please sign in to comment.