Documentation Index
Fetch the complete documentation index at: https://mintlify.com/vemetric/vemetric/llms.txt
Use this file to discover all available pages before exploring further.
Deployment Guide
This guide covers deploying Vemetric using Docker Compose for local development and production environments.Prerequisites
Docker Compose Deployment
1. Start Infrastructure Services
Vemetric uses Docker Compose to run PostgreSQL, Redis, and ClickHouse:PostgreSQL
Port:
5433Database: vemetricRedis
Port:
6379With persistence enabledClickHouse
HTTP:
8123Native: 9000PostgreSQL runs on port
5433 (not the default 5432) to avoid conflicts with existing installations.2. Configure Environment Variables
Copy the example environment file and configure it:.env with your configuration. See Configuration for detailed environment variable documentation.
Minimum required changes:
.env
3. Install Dependencies
Install all workspace dependencies:4. Run Database Migrations
5. Start All Services
Start all Vemetric services in development mode:- App (Web UI + API): http://localhost:4000
- Hub (Event Ingestion): http://localhost:4004
- Worker (Background Jobs): Running in background
- BullBoard (Queue UI): http://localhost:4100
The
bun dev command uses Turborepo to run all services except health-check. Services will auto-reload on code changes.6. Access the Application
Open your browser and navigate to:Production Deployment
Building for Production
Exposed Ports
| Service | Port | Protocol | Purpose |
|---|---|---|---|
| App | 4000 | HTTP | Web UI and API |
| Hub | 4004 | HTTP | Event ingestion |
| BullBoard | 4100 | HTTP | Queue monitoring UI |
| PostgreSQL | 5433 | TCP | Database connections |
| Redis | 6379 | TCP | Cache and queues |
| ClickHouse HTTP | 8123 | HTTP | ClickHouse HTTP API |
| ClickHouse Native | 9000 | TCP | ClickHouse native protocol |
| ClickHouse Metrics | 9363 | HTTP | Prometheus metrics |
Reverse Proxy Configuration
For production deployments, use a reverse proxy like Nginx or Caddy:Health Checks
Vemetric includes health check endpoints for monitoring:Verification
Verify your deployment:Troubleshooting
Services won't start
Services won't start
Check Docker logs:Ensure all required ports are available and not in use by other services.
Database connection errors
Database connection errors
Verify environment variables in
.env match your Docker Compose configuration:- PostgreSQL port:
5433 - ClickHouse port:
8123 - Redis port:
6379
Migration failures
Migration failures
Ensure databases are running before running migrations:If services are unhealthy, restart them:
Next Steps
Configuration
Configure environment variables for your deployment
Monitoring
Set up monitoring and observability