Installation
This guide covers different installation methods for Loggator.
Docker Compose (Recommended)
Section titled “Docker Compose (Recommended)”The easiest way to run Loggator is with Docker Compose.
Complete docker-compose.yml
Section titled “Complete docker-compose.yml”services: meilisearch: image: getmeili/meilisearch:v1.12 container_name: meilisearch environment: MEILI_MASTER_KEY: ${MEILI_MASTER_KEY} MEILI_ENV: production volumes: - ./meilisearch-data:/meili_data networks: - loggator-network restart: unless-stopped
loggator: image: ghcr.io/mbeggiato/loggator:latest container_name: loggator ports: - "3000:3000" environment: MEILISEARCH_HOST: http://meilisearch:7700 MEILISEARCH_API_KEY: ${MEILI_MASTER_KEY} DOCKER_LABEL_FILTER: loggator.enable=true PORT: 3000 # AI Configuration (optional) OPENROUTER_API_KEY: ${OPENROUTER_API_KEY} AI_MODEL: xiaomi/mimo-v2-flash:free SITE_URL: ${SITE_URL:-http://localhost:3000} volumes: - /var/run/docker.sock:/var/run/docker.sock:ro depends_on: - meilisearch networks: - loggator-network restart: unless-stopped labels: - "loggator.enable=true"
networks: loggator-network: driver: bridgeEnvironment File (.env)
Section titled “Environment File (.env)”Create a .env file in the same directory:
# RequiredMEILI_MASTER_KEY=your-generated-secure-key-here
# Optional - AI AssistantOPENROUTER_API_KEY=sk-or-v1-your-key-hereSITE_URL=http://localhost:3000Start Services
Section titled “Start Services”docker compose up -dStandalone Docker
Section titled “Standalone Docker”If you prefer to run containers individually:
1. Start Meilisearch
Section titled “1. Start Meilisearch”docker run -d \ --name meilisearch \ -p 7700:7700 \ -e MEILI_MASTER_KEY=your-secure-key \ -v $(pwd)/meilisearch-data:/meili_data \ getmeili/meilisearch:v1.122. Start Loggator
Section titled “2. Start Loggator”docker run -d \ --name loggator \ -p 3000:3000 \ -e MEILISEARCH_HOST=http://meilisearch:7700 \ -e MEILISEARCH_API_KEY=your-secure-key \ -e OPENROUTER_API_KEY=your-openrouter-key \ -v /var/run/docker.sock:/var/run/docker.sock:ro \ --link meilisearch \ ghcr.io/mbeggiato/loggator:latestBuilding from Source
Section titled “Building from Source”For development or custom builds:
Prerequisites
Section titled “Prerequisites”- Node.js 20+ or Bun
- Docker (for running Meilisearch)
Clone Repository
Section titled “Clone Repository”git clone https://github.com/MBeggiato/loggator.gitcd loggatorInstall Dependencies
Section titled “Install Dependencies”# Using npmnpm install
# Or using bun (recommended)bun installStart Development Services
Section titled “Start Development Services”# Start Meilisearch and test loggerbun run dev:services
# In another terminal, start dev serverbun run devThe application will be available at http://localhost:5173
Production Build
Section titled “Production Build”# Build the applicationbun run build
# Preview production buildbun run previewSystem Requirements
Section titled “System Requirements”Minimum Requirements
Section titled “Minimum Requirements”- CPU: 1 core
- RAM: 512 MB (without logs), 1 GB+ recommended
- Disk: 1 GB + space for logs
- Docker: 20.10+
- Docker Compose: 2.0+
Recommended Requirements
Section titled “Recommended Requirements”- CPU: 2+ cores
- RAM: 2 GB+
- Disk: SSD with 10+ GB
- Network: Stable connection for AI features
Port Configuration
Section titled “Port Configuration”By default, Loggator uses these ports:
3000- Loggator Web UI7700- Meilisearch (internal, can be exposed)
To change ports, update the docker-compose.yml:
services: loggator: ports: - "8080:3000" # Access on port 8080Volume Mounts
Section titled “Volume Mounts”Meilisearch Data
Section titled “Meilisearch Data”Persistent storage for indexed logs:
volumes: - ./meilisearch-data:/meili_dataDocker Socket
Section titled “Docker Socket”Required for reading container logs:
volumes: - /var/run/docker.sock:/var/run/docker.sock:roNetwork Configuration
Section titled “Network Configuration”Loggator and Meilisearch should be on the same network:
networks: loggator-network: driver: bridgeHealth Checks
Section titled “Health Checks”Verify services are running:
# Check Loggatorcurl http://localhost:3000/api/status
# Check Meilisearchcurl http://localhost:7700/healthUpgrading
Section titled “Upgrading”To upgrade to the latest version:
# Pull latest imagesdocker compose pull
# Restart servicesdocker compose up -dUninstalling
Section titled “Uninstalling”To completely remove Loggator:
# Stop and remove containersdocker compose down
# Remove volumes (deletes all logs!)docker compose down -v
# Remove imagesdocker rmi ghcr.io/mbeggiato/loggator:latestdocker rmi getmeili/meilisearch:v1.12Next Steps
Section titled “Next Steps”- Environment Variables - Configure Loggator
- Docker Setup - Label your containers
- AI Assistant - Set up the AI chat