Skip to main content

Installation

Get ClaraVerse running with Docker Compose. Total time: about 5 minutes.

Prerequisites​

RequirementMinimumNotes
Docker20.10+Install Docker
Docker Composev2+Included with Docker Desktop; on Linux, install the docker-compose-plugin
GitAny recent versionTo clone the repository
RAM4 GB freeMongoDB, MySQL, Redis, SearXNG, backend, and frontend all run simultaneously
Disk5 GB freeFor Docker images and database volumes

Step 1: Clone the Repository​

git clone https://github.com/claraverse-space/ClaraVerse.git
cd ClaraVerse

Step 2: Create Your Environment File​

cp .env.example .env

Step 3: Generate Secrets​

Two secrets are required. Generate them and update your .env file:

# Generate JWT signing key
openssl rand -hex 32
# Copy the output and set JWT_SECRET= in .env

# Generate encryption key for user data
openssl rand -hex 32
# Copy the output and set ENCRYPTION_MASTER_KEY= in .env

Or do it in one shot:

sed -i "s|^JWT_SECRET=.*|JWT_SECRET=$(openssl rand -hex 32)|" .env
sed -i "s|^ENCRYPTION_MASTER_KEY=.*|ENCRYPTION_MASTER_KEY=$(openssl rand -hex 32)|" .env
warning

Keep your ENCRYPTION_MASTER_KEY safe. Losing it means losing access to all encrypted user data (conversations, saved credentials). Back it up.

Step 4: Start ClaraVerse​

docker compose up --build

First build takes a few minutes to download images and compile. Subsequent starts are faster.

To run in the background:

docker compose up --build -d

Step 5: Verify​

Once all containers are healthy, open your browser:

ServiceURL
ClaraVersehttp://localhost
Backend APIhttp://localhost:3001/health

You should see the ClaraVerse registration page. The first user to register automatically becomes the admin.

What Gets Started​

Docker Compose brings up six services:

ContainerImagePortPurpose
claraverse-frontendBuilt from ./frontend80React web UI (nginx)
claraverse-backendBuilt from ./backend3001Go API server
claraverse-mongodbmongo:727017Conversations, workflows, data
claraverse-mysqlmysql:8.03306Providers, models, capabilities
claraverse-redisredis:7-alpine6379Job scheduling, WebSocket pub/sub
claraverse-searxngsearxng/searxng:latest--Private web search (internal only)

Troubleshooting​

Port 80 already in use? Another web server (nginx, Apache) may be running. Stop it, or change the frontend port in docker-compose.yml:

frontend:
ports:
- "8080:80" # Access at http://localhost:8080 instead

Containers failing health checks? Give them more time on first boot. Check logs:

docker compose logs -f backend
docker compose logs -f mysql

Out of memory? The stack uses approximately 4 GB. Close other heavy applications, or increase Docker's memory allocation in Docker Desktop settings.

Next Steps​

Proceed to Configuration to customize environment variables, or jump straight to the Quickstart to start using ClaraVerse.