Skip to content

Instantly share code, notes, and snippets.

@jippi
Created December 19, 2016 12:47
Show Gist options
  • Save jippi/dce19bb459838fa51567f239097f61b0 to your computer and use it in GitHub Desktop.
Save jippi/dce19bb459838fa51567f239097f61b0 to your computer and use it in GitHub Desktop.
job "nomad-ui" {
type = "system"
region = "global"
datacenters = ["production", "stage"]
constraint {
attribute = "${meta.web}"
value = "1"
}
group "ui" {
task "server" {
driver = "docker"
config {
image = "jippi/hashi-ui"
network_mode = "host"
volumes = [
"/etc/ssl/certs/:/etc/ssl/certs/",
]
}
service {
port = "http"
check {
type = "http"
path = "/"
interval = "10s"
timeout = "2s"
}
}
env {
NOMAD_ADDR = "http://http.nomad.service.bownty:4646"
}
resources {
cpu = 500
memory = 128
network {
mbits = 10
port "http" {
static = 3000
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment