-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoctobot.hcl
More file actions
46 lines (37 loc) · 757 Bytes
/
octobot.hcl
File metadata and controls
46 lines (37 loc) · 757 Bytes
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
job "octobot" {
type = "service"
group "octobot" {
count = 1
restart {
attempts = 0
mode = "fail"
}
task "octobot" {
driver = "docker"
config {
image = "drakkarsoftware/octobot:stable"
ports = ["http"]
# you should use a CSI or NFS instead of a volume
volumes = [
"./logs:/octobot/logs",
"./backtesting:/octobot/backtesting",
"./tentacles:/octobot/tentacles",
"./user:/octobot/user"
]
}
env {
PORT = 5001
}
resources {
cpu = 500 # MHz
memory = 512 # MB
}
}
network {
port "http" {
static = 80
to = 5001
}
}
}
}