-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathfly.toml
More file actions
49 lines (40 loc) · 1.17 KB
/
Copy pathfly.toml
File metadata and controls
49 lines (40 loc) · 1.17 KB
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
# Fly.io deploy config for hermes-trader.
# Edit `app` to your chosen name; `flyctl launch` will offer a default.
app = "hermes-trader"
primary_region = "iad" # change to a region near you
[build]
dockerfile = "Dockerfile"
# Two processes share the image:
# web — FastAPI server (dashboard + JSON API + SSE feed)
# loop — autonomous trading loop (scan → research → execute → DSL monitor)
[processes]
web = "python3 -m hermes_trader.server"
loop = "python3 scripts/trading_loop.py"
[[mounts]]
source = "hermes_data" # `fly volumes create hermes_data --size 1`
destination = "/data"
processes = ["web", "loop"]
[http_service]
internal_port = 8000
force_https = true
auto_stop_machines = false # don't sleep — the loop must keep running
auto_start_machines = true
min_machines_running = 1
processes = ["web"]
[[http_service.checks]]
grace_period = "30s"
interval = "30s"
method = "GET"
timeout = "10s"
path = "/api/health"
[[vm]]
size = "shared-cpu-1x"
memory = "512mb"
processes = ["web"]
[[vm]]
size = "shared-cpu-1x"
memory = "512mb"
processes = ["loop"]
[env]
HERMES_PORT = "8000"
HERMES_SCAN_INTERVAL = "60"