Overview
OpenSight is designed to be fully self-hosted, giving you complete control over your data and infrastructure. The platform consists of multiple services that work together to provide real-time data analysis and visualization capabilities.Architecture
OpenSight uses a microservices architecture with the following components:Core Services
Web Application
Next.js 14 frontend with React 18 and TypeScriptPort: 3000
API Server
Express backend with TypeScript for data processingPort: 4000
PostgreSQL Database
PostgreSQL 16 for persistent data storagePort: 5432
Redis Cache
Redis 7 for high-performance cachingPort: 6379
Service Dependencies
Deployment Options
Docker Compose (Recommended)
The simplest way to deploy OpenSight is using Docker Compose, which handles all service orchestration automatically.Configure environment variables
Manual Deployment
For custom deployment scenarios, you can deploy each component separately:Set up PostgreSQL and Redis
Install and configure PostgreSQL 16+ and Redis 7+ on your infrastructure.
System Requirements
Minimum Requirements
- CPU: 2 cores
- RAM: 4 GB
- Storage: 20 GB SSD
- OS: Linux (Ubuntu 20.04+, Debian 11+, or similar)
Recommended Requirements
- CPU: 4+ cores
- RAM: 8+ GB
- Storage: 50+ GB SSD
- OS: Linux (Ubuntu 22.04+ or Debian 12+)
Software Requirements
For Docker Deployment
For Docker Deployment
- Docker 24.0+
- Docker Compose 2.20+
For Manual Deployment
For Manual Deployment
- Node.js 20+
- npm or pnpm package manager
- PostgreSQL 16+
- Redis 7+
Network Configuration
Default Ports
| Service | Port | Protocol | Required |
|---|---|---|---|
| Web UI | 3000 | HTTP | Yes |
| API Server | 4000 | HTTP | Yes |
| PostgreSQL | 5432 | TCP | Internal |
| Redis | 6379 | TCP | Internal |
Firewall Rules
If you’re deploying behind a firewall, ensure the following ports are accessible:Data Persistence
OpenSight uses Docker volumes for data persistence:- pgdata: PostgreSQL database files
- redisdata: Redis persistence files
Health Checks
All services include health checks for monitoring:Health Check Endpoints
- API Health:
http://localhost:4000/health - PostgreSQL: Automatic via
pg_isready - Redis: Automatic via
redis-cli ping
Next Steps
Docker Deployment
Step-by-step guide for deploying with Docker Compose
Environment Variables
Complete reference for all configuration options
API Reference
Explore the API endpoints and integration options
Database Setup
Configure and manage your PostgreSQL database