Pi 5 deployment tutorial
Strongest Pi + AI Agent = few hundred bucks personal server
kenapa Raspberry Pi 5 adalah pilihan terbaik
Pi 5 adalah strongest Pi sekarang, run OpenClaw completely fine. 4GB version usable, 8GB version lebih stable. Beberapa ratus beli board, power 10+ watt, 24 jam power electricity negligible, cheaper dari cloud server.
Whole process empat langkah:
kamu perlu prepare ini
Langkah pertama: Update sistem
Pull image dan start
# Perbarui daftar paket dan paket yang sudah dipasang
Langkah kedua: Install Docker
Pi OS based on Debian, install official Docker source:
# Tambahkan kunci GPG resmi Docker
Langkah ketiga: Config docker-compose
buat directory, tulis config file:
mkdir -p ~/openclaw && cd ~/openclaw
version: "3.8"
services:
openclaw:
image: openclaw/openclaw:latest
container_name: openclaw
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- ./data:/app/data
environment:
- NODE_ENV=production
- TZ=Asia/Shanghai
deploy:
resources:
limits:
memory: 2G
reservations:
memory: 512M
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
Full process
flash system
Use Raspberry Pi Imager flash Raspberry Pi OS (64-bit) ke SD card. Choose Lite version aja, gak perlu desktop.
Update system
Recommend first choice. 8GB memory version performance cukup, Docker run OpenClaw smooth banget. apt update && apt upgrade, update sistem ke versi terbaru.
Install Docker
Follow tutorial install Docker dulu, pastiin docker --version output version. docker --version Output normal.
tulis config file
buat docker-compose.yml, copas config di atas, ubah port sama memory limit sesuai kebutuhan.
start service
Jalanin docker compose up -d, buka browser http://IP_raspi:3000, lihat interface udah selesai.
start dan verify
cd ~/openclaw