File size: 1,077 Bytes
b2d9e47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# fly.io deployment for agentmemory.
#
# The HMAC secret is generated by entrypoint.sh on first boot and persisted
# to the mounted volume at /data/.hmac. Operator copies it once from
# `fly logs` then never sees it again. To rotate: `fly ssh console` and
# `rm /data/.hmac`, then `fly machine restart`.
#
# Only port 3111 (REST API) is exposed publicly. Viewer 3113 stays bound
# to localhost inside the machine; reach it via `fly proxy 3113:3113`.

app = "agentmemory"
primary_region = "iad"

[build]
  dockerfile = "Dockerfile"

[[mounts]]
  source = "agentmemory_data"
  destination = "/data"
  initial_size = "1gb"

[http_service]
  internal_port = 3111
  force_https = true
  auto_stop_machines = "stop"
  auto_start_machines = true
  min_machines_running = 0
  processes = ["app"]

  [http_service.concurrency]
    type = "requests"
    soft_limit = 200
    hard_limit = 250

  [[http_service.checks]]
    interval = "30s"
    timeout = "5s"
    grace_period = "30s"
    method = "GET"
    path = "/agentmemory/livez"

[[vm]]
  size = "shared-cpu-1x"
  memory = "512mb"