Skip to content

Docker Deployment

Ahmed edited this page Mar 16, 2026 · 2 revisions

Docker Deployment

Docker is the recommended production path for running EventLens.

Docker Compose Example

Drop this service into your docker-compose.yml stack to run EventLens alongside your existing event store:

services:
  eventlens:
    image: alphasudo2/eventlens-app:latest
    restart: on-failure
    environment:
      EVENTLENS_CONFIG: /app/eventlens.yaml
    volumes:
      - ./eventlens.yaml:/app/eventlens.yaml:ro
    ports:
      - "9090:9090"
    depends_on:
      postgres:
        condition: service_healthy
    healthcheck:
      test: ["CMD-SHELL", "curl -sf http://localhost:9090/api/health || exit 1"]
      interval: 10s
      timeout: 5s
      retries: 5
      start_period: 20s

Ensure your postgres and optional kafka services also contain valid health checks so EventLens starts reliably only after data stores are online.

Return Home

Clone this wiki locally