Fly.io
在 Fly.io 上部署 OpenClaw。
快速开始
1. 安装 Fly CLI
bash
curl -L https://fly.io/install.sh | sh
flyctl auth login2. 创建应用
bash
fly launch --name openclaw --image openclaw/openclaw:latest3. 配置 Fly.io
创建 fly.toml:
toml
app = "openclaw"
primary_region = "iad"
[build]
image = "openclaw/openclaw:latest"
[http_service]
internal_port = 8211
force_https = true
[[vm]]
size = "shared-cpu-1x"
memory = "1gb"
cpus = 1
cpu_kind = "shared"配置
yaml
platform:
flyio:
app: "openclaw"
region: "iad"
vm:
size: "shared-cpu-1x"
memory: "1gb"
cpus: 1
volume:
size: "1gb"
mount_path: "/data"持久化存储
bash
# 创建持久卷
fly volumes create openclaw_data --size 1 --region iad
# 挂载卷
fly deploy扩展配置
toml
[[vm]]
size = "dedicated-cpu-1x"
memory = "2gb"
cpus = 1
[metrics]
port = 9091
path = /metrics