LogstackLogstack

Deployment Overview

Deploy LogStack to production environments.

Deployment Overview

LogStack can be deployed in multiple ways to match your infrastructure needs.

Deployment Options

Architecture Requirements

LogStack requires the following services:

ServicePurposeRecommended
PostgreSQLPrimary databasePostgreSQL 15+
RedisCaching, rate limiting, pub/subRedis 7+
Go APIBackend API serverGo 1.21+
Next.js WebDashboard frontendNode.js 18+

Minimum Requirements

Development / Testing

ResourceMinimum
CPU2 cores
RAM4 GB
Storage20 GB SSD

Production

ResourceRecommended
CPU4+ cores
RAM8+ GB
Storage100+ GB SSD

Quick Start

The fastest way to deploy LogStack:

# Clone the repository
git clone https://github.com/mosesedem/logstack.git
cd logstack
 
# Copy environment configuration
cp .env.example .env
 
# Edit configuration (see Production Checklist)
nano .env
 
# Start all services
docker-compose up -d
 
# Check health
curl http://localhost:8080/health

The default configuration is for development. See the Production Checklist before deploying to production.

Environment Variables

Key configuration variables:

# Database
DATABASE_URL=postgres://logstack:password@localhost:5432/logstack
 
# Redis
REDIS_URL=redis://localhost:6379
 
# Security (CHANGE IN PRODUCTION)
JWT_SECRET=generate-with-openssl-rand-base64-32
NEXTAUTH_SECRET=generate-with-openssl-rand-base64-32
 
# External Services
RESEND_API_KEY=re_xxxxxxxxxxxxx  # Email notifications
FCM_SERVER_KEY=AAAAxxxxxxx       # Push notifications (optional)
 
# Server
PORT=8080
ENV=production
ALLOWED_ORIGINS=https://your-domain.com

See .env.example for all options.

Service Ports

ServiceDefault PortProtocol
Go API8080HTTP
Next.js Web3000HTTP
PostgreSQL5432TCP
Redis6379TCP
WebSocket8080WS

Next Steps

  1. Docker Deployment — Set up with Docker Compose
  2. Cloud Deployment — Deploy to AWS, GCP, or DigitalOcean
  3. Production Checklist — Security and performance hardening

On this page