-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathcountdashboard.nomad.hcl
45 lines (41 loc) · 1017 Bytes
/
countdashboard.nomad.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
job "countdash" {
datacenters = ["eu-west-2a","eu-west-2b","eu-west-2c","eu-west-2","dc1"]
group "dashboard" {
network {
mode ="bridge"
port "http" {
static = 9002
to = 9002
}
}
service {
name = "count-dashboard"
tags = ["urlprefix-/count-dashboard strip=/count-dashboard"]
port = "9002"
connect {
sidecar_service {
proxy {
upstreams {
destination_name = "count-api"
local_bind_port = 8080
}
config {
mesh_gateway {
mode = "local"
}
}
}
}
}
}
task "dashboard" {
driver = "docker"
env {
COUNTING_SERVICE_URL = "http://127.0.0.1:8080"
}
config {
image = "hashicorpnomad/counter-dashboard:v1"
}
}
}
}