feat: initial MALS implementation — Phase 1

This commit is contained in:
2026-03-20 07:59:43 -05:00
commit dc1258a5cc
28 changed files with 2972 additions and 0 deletions

31
.env.example Normal file
View File

@@ -0,0 +1,31 @@
# =============================================================================
# MALS — Mosaic Agent Log System — Environment Configuration
# Copy this file to .env and fill in the required values.
# =============================================================================
# --- Required ---
# PostgreSQL password (no default — must be set)
POSTGRES_PASSWORD=change-me-in-production
# API bearer token — all clients must send: Authorization: Bearer <MALS_API_KEY>
MALS_API_KEY=change-me-in-production
# --- Optional (defaults shown) ---
# Database name and user
POSTGRES_DB=mals
POSTGRES_USER=mals
# Port the PostgreSQL container exposes on the host
PG_PORT=5434
# Port the API container exposes on the host
MALS_PORT=8421
# Log verbosity: DEBUG | INFO | WARNING | ERROR | CRITICAL
LOG_LEVEL=INFO
# For Portainer/Swarm only: your domain and Docker image tag
# MALS_DOMAIN=mals.yourdomain.com
# MALS_IMAGE=registry.yourdomain.com/mals:latest