Created
December 19, 2016 12:47
-
-
Save jippi/dce19bb459838fa51567f239097f61b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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