Ragnarock
Developer

Local setup

Run the full Ragnarock stack on your machine.

Complete local stack: infrastructure in Docker, NestJS API, FastAPI agent, Next.js frontend, and this docs site.

Prerequisites

ToolVersion
Bun1.3+ (backend)
pnpm9+ (frontend, docs)
DockerDesktop or Engine
Python3.11+ (agent, optional if using Docker agent)

1. Infrastructure

From ragnarock-backend:

make up

Or explicitly:

docker compose -f docker/development/docker-compose.yml up -d
ServicePortPurpose
PostgreSQL5432Prisma / app data
pgvector memory5433Agent embeddings
Redis6379Sessions, AI queues
Typesense8108User search
Mailpit SMTP1025Outbound mail capture
Mailpit UI8025Read dev emails

2. Backend API

cd ragnarock-backend
cp .env.example .env
bun install
bun run prisma:generate
bun run prisma:migrate:dev
bun run start:dev

Use DATABASE_URL with host localhost when running the API on your machine (not inside Docker). Compose defaults use service name postgres.

3. Agent worker

cd ragnarock-agent
cp .env.example .env
# Set LLM_PROVIDER and API keys, REDIS_URL, DATABASE_URL
pip install -r requirements.txt
./run.sh

Health: http://localhost:8100/health

Or start via staging compose (agent service on port 8100).

4. Frontend

cd ragnarock
# create .env.local
pnpm install
pnpm dev
.env.local
NEXT_PUBLIC_API_URL=http://localhost:8000

App: http://localhost:3000

5. Documentation site

cd ragnarock-docs
cp .env.example .env.local
pnpm install
pnpm dev

Optional Ask AI: set OPENROUTER_API_KEY in .env.local.

Key environment variables

Prop

Type

Verify the stack

curl http://localhost:8000 — API responds.
curl http://localhost:8100/health — agent healthy.
Sign up at http://localhost:3000 — check Mailpit for verification email.
Create a project and send a Ragnarock chat message — watch agent logs.

Troubleshooting: Common issues.

On this page