Add Fly.io deployment configuration
Browse files
fly.toml
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# fly.toml - Fly.io deployment configuration
|
| 2 |
+
# Deploy with: fly launch
|
| 3 |
+
|
| 4 |
+
app = "cascade-llm-router"
|
| 5 |
+
primary_region = "sjc"
|
| 6 |
+
|
| 7 |
+
[build]
|
| 8 |
+
dockerfile = "Dockerfile"
|
| 9 |
+
|
| 10 |
+
[env]
|
| 11 |
+
PORT = "8080"
|
| 12 |
+
PYTHONPATH = "/app/src"
|
| 13 |
+
|
| 14 |
+
[http_service]
|
| 15 |
+
internal_port = 8080
|
| 16 |
+
force_https = true
|
| 17 |
+
auto_stop_machines = true
|
| 18 |
+
auto_start_machines = true
|
| 19 |
+
min_machines_running = 0
|
| 20 |
+
processes = ["app"]
|
| 21 |
+
|
| 22 |
+
[[http_service.checks]]
|
| 23 |
+
grace_period = "10s"
|
| 24 |
+
interval = "30s"
|
| 25 |
+
method = "GET"
|
| 26 |
+
timeout = "5s"
|
| 27 |
+
path = "/health"
|
| 28 |
+
|
| 29 |
+
[[vm]]
|
| 30 |
+
cpu_kind = "shared"
|
| 31 |
+
cpus = 1
|
| 32 |
+
memory_mb = 512
|