Files
openclaw/fly.toml
T

35 lines
773 B
TOML
Raw Normal View History

2026-01-30 03:15:10 +01:00
# OpenClaw Fly.io deployment configuration
2026-01-24 07:15:40 +00:00
# See https://fly.io/docs/reference/configuration/
2026-01-30 03:15:10 +01:00
app = "openclaw"
2026-01-31 18:31:49 +09:00
primary_region = "iad" # change to your closest region
2026-01-24 07:15:40 +00:00
[build]
2026-01-31 18:31:49 +09:00
dockerfile = "Dockerfile"
2026-01-24 07:15:40 +00:00
[env]
2026-01-31 18:31:49 +09:00
NODE_ENV = "production"
# Fly uses x86, but keep this for consistency
OPENCLAW_PREFER_PNPM = "1"
OPENCLAW_STATE_DIR = "/data"
NODE_OPTIONS = "--max-old-space-size=1536"
2026-01-24 10:55:39 +00:00
[processes]
2026-01-31 18:31:49 +09:00
app = "node dist/index.js gateway --allow-unconfigured --port 3000 --bind lan"
2026-01-24 07:15:40 +00:00
[http_service]
2026-01-31 18:31:49 +09:00
internal_port = 3000
force_https = true
auto_stop_machines = false # Keep running for persistent connections
auto_start_machines = true
min_machines_running = 1
processes = ["app"]
2026-01-24 07:15:40 +00:00
[[vm]]
2026-01-31 18:31:49 +09:00
size = "shared-cpu-2x"
memory = "2048mb"
2026-01-24 07:15:40 +00:00
[mounts]
2026-01-31 18:31:49 +09:00
source = "openclaw_data"
destination = "/data"