-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathclef.tmpl
50 lines (42 loc) · 855 Bytes
/
clef.tmpl
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
job "{{ .Name }}-{{ .Index }}" {
datacenters = ["dc1"]
group "clef-node" {
network {
port "http" {
to = 8550
static = 855{{ .Index }}
}
}
task "clef-node" {
driver = "docker"
config {
image = "vegaprotocol/clef:v2.2.1"
auth_soft_fail = true
ports = ["http"]
}
resources {
cpu = 1000
memory = 2000
}
}
task "logger" {
driver = "raw_exec"
config {
command = "bash"
args = [
"-c",
join(" ", [
"{{ .CapsuleBinary }}",
"nomad", "logscollector",
"--out-dir", "{{ .LogsDir }}/{{ .Name }}-{{ .Index }}"
])
]
}
resources {
cpu = 100
memory = 100
memory_max = 300
}
}
}
}