forked from iotaledger/evm-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wasp-evm-toolkit.nomad.tpl
63 lines (53 loc) · 1.01 KB
/
wasp-evm-toolkit.nomad.tpl
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
job "isc-evm-toolkit-${workspace}" {
datacenters = ["hcloud"]
group "web" {
ephemeral_disk {
migrate = false
sticky = true
}
network {
port "http" {
host_network = "private"
to = 80
}
}
task "worker" {
driver = "docker"
config {
image = "${artifact.image}:${artifact.tag}"
entrypoint = ["nginx", "-g", "daemon off;"]
ports = [
"http",
]
auth {
username = "${auth.username}"
password = "${auth.password}"
server_address = "${auth.server_address}"
}
}
env {
%{ for k,v in entrypoint.env ~}
${k} = "${v}"
%{ endfor ~}
// Ensure we set PORT for the URL service. This is only necessary
// if we want the URL service to function.
PORT = "$${NOMAD_ALLOC_PORT_http}"
}
service {
tags = ["http"]
port = "http"
check {
type = "http"
port = "http"
path = "/"
interval = "5s"
timeout = "2s"
}
}
resources {
memory = 256
cpu = 256
}
}
}
}