-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
62 lines (52 loc) · 1.16 KB
/
fly.toml
File metadata and controls
62 lines (52 loc) · 1.16 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
50
51
52
53
54
55
56
57
58
59
60
61
62
# MedGemma × CompText - Fly.io Production Configuration
# Trigger deploy workflow
app = "medgemma-api"
primary_region = "iad"
[build]
dockerfile = "Dockerfile.api"
[env]
PYTHONUNBUFFERED = "1"
PYTHONDONTWRITEBYTECODE = "1"
API_ENV = "production"
LOG_LEVEL = "info"
RATE_LIMIT_REQUESTS = "1000"
RATE_LIMIT_WINDOW = "3600"
# VM configuration for edge compute
[[vm]]
cpu_kind = "shared"
cpus = 1
memory_mb = 1024
[[services]]
internal_port = 8000
protocol = "tcp"
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 1
processes = ["app"]
[[services.ports]]
port = 80
handlers = ["http"]
force_https = true
[[services.ports]]
port = 443
handlers = ["tls", "http"]
# HTTP health check for load balancer
[[services.http_checks]]
grace_period = "10s"
interval = "10s"
timeout = "5s"
method = "GET"
path = "/health"
protocol = "http"
tls_skip_verify = false
headers = { }
# Restart policy
auto_stop_machines = true
auto_start_machines = true
[deploy]
strategy = "rolling"
wait_timeout = "5m"
max_unavailable = 1
# Monitoring and metrics
[metrics]
port = 9090