Skip to content

Quick Start

Get Loggator running in just a few steps with Docker Compose.

  • Docker and Docker Compose installed
  • Internet connection for downloading images

Download the example docker-compose file:

Terminal window
curl -O https://raw.githubusercontent.com/MBeggiato/loggator/main/docker-compose.example.yml
mv docker-compose.example.yml docker-compose.yml

Generate a secure master key for Meilisearch:

Terminal window
# Linux/Mac
openssl rand -base64 32
# Example output (use your own!):
# bLwLpwgIW6VQTBrt7ZhUw9MiJXYh8Vat7YVr4lU-5XA

Open docker-compose.yml and replace aSampleMasterKey1234567890abcdef with your generated key in both places:

services:
meilisearch:
image: getmeili/meilisearch:v1.12
environment:
MEILI_MASTER_KEY: YOUR_GENERATED_KEY_HERE
# ...
loggator:
image: ghcr.io/mbeggiato/loggator:latest
environment:
MEILISEARCH_HOST: http://meilisearch:7700
MEILISEARCH_API_KEY: YOUR_GENERATED_KEY_HERE

To enable the AI assistant, get a free API key from OpenRouter and create a .env file:

.env
OPENROUTER_API_KEY=sk-or-v1-... # Your OpenRouter API key
AI_MODEL=xiaomi/mimo-v2-flash:free
SITE_URL=http://localhost:3000
Terminal window
docker compose up -d

Open your browser and navigate to http://localhost:3000

Add the loggator.enable=true label to any container you want to monitor:

services:
my-app:
image: my-app:latest
labels:
- "loggator.enable=true"

Then restart the container:

Terminal window
docker compose restart my-app
  1. Check that Loggator is running: docker compose ps
  2. Open http://localhost:3000 in your browser
  3. You should see the dashboard with container statistics
  4. Try the AI chat by asking: “What containers are you monitoring?”

Make sure both keys match exactly in your docker-compose.yml:

  • MEILI_MASTER_KEY (Meilisearch service)
  • MEILISEARCH_API_KEY (Loggator service)

Verify your containers have the correct label:

Terminal window
docker inspect my-container | grep loggator.enable

Check that your OpenRouter API key is valid:

Terminal window
# Test the API key
curl https://openrouter.ai/api/v1/models \
-H "Authorization: Bearer sk-or-v1-..."