Quick Start
Get Loggator running in just a few steps with Docker Compose.
Prerequisites
Section titled “Prerequisites”- Docker and Docker Compose installed
- Internet connection for downloading images
Step 1: Download Configuration
Section titled “Step 1: Download Configuration”Download the example docker-compose file:
curl -O https://raw.githubusercontent.com/MBeggiato/loggator/main/docker-compose.example.ymlmv docker-compose.example.yml docker-compose.ymlStep 2: Generate Meilisearch Key
Section titled “Step 2: Generate Meilisearch Key”Generate a secure master key for Meilisearch:
# Linux/Macopenssl rand -base64 32
# Example output (use your own!):# bLwLpwgIW6VQTBrt7ZhUw9MiJXYh8Vat7YVr4lU-5XAStep 3: Update docker-compose.yml
Section titled “Step 3: Update docker-compose.yml”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_HEREStep 4: Configure AI Chat (Optional)
Section titled “Step 4: Configure AI Chat (Optional)”To enable the AI assistant, get a free API key from OpenRouter and create a .env file:
OPENROUTER_API_KEY=sk-or-v1-... # Your OpenRouter API keyAI_MODEL=xiaomi/mimo-v2-flash:freeSITE_URL=http://localhost:3000Step 5: Start Loggator
Section titled “Step 5: Start Loggator”docker compose up -dOpen your browser and navigate to http://localhost:3000
Step 6: Enable Container Monitoring
Section titled “Step 6: Enable Container Monitoring”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:
docker compose restart my-appVerify Installation
Section titled “Verify Installation”- Check that Loggator is running:
docker compose ps - Open http://localhost:3000 in your browser
- You should see the dashboard with container statistics
- Try the AI chat by asking: “What containers are you monitoring?”
Next Steps
Section titled “Next Steps”- Configure Environment Variables - Customize Loggator’s behavior
- AI Assistant Setup - Learn about AI models and features
- API Reference - Integrate with your tools
Troubleshooting
Section titled “Troubleshooting”Meilisearch connection failed
Section titled “Meilisearch connection failed”Make sure both keys match exactly in your docker-compose.yml:
MEILI_MASTER_KEY(Meilisearch service)MEILISEARCH_API_KEY(Loggator service)
No containers showing up
Section titled “No containers showing up”Verify your containers have the correct label:
docker inspect my-container | grep loggator.enableAI Chat not working
Section titled “AI Chat not working”Check that your OpenRouter API key is valid:
# Test the API keycurl https://openrouter.ai/api/v1/models \ -H "Authorization: Bearer sk-or-v1-..."