Skip to main content
Logwiz reads its configuration from environment variables at startup. For Docker deployments, set these under the environment key of the logwiz service in docker-compose.yml.
Change LOGWIZ_ADMIN_PASSWORD from its default value before exposing Logwiz to the internet. The default password logwiz is well-known and unsafe for production use.
VariableRequiredDefaultDescription
LOGWIZ_QUICKWIT_URLYesQuickwit REST API endpoint (e.g. http://quickwit:7280/api/v1). Logwiz will refuse to start without it.
LOGWIZ_ADMIN_EMAILNologwiz@logwiz.localEmail address for the seeded admin account.
LOGWIZ_ADMIN_USERNAMENologwizUsername for the seeded admin account.
LOGWIZ_ADMIN_PASSWORDNologwizPassword for the seeded admin account.
LOGWIZ_AUTH_SECRETNoAuto-generatedSecret used to sign session tokens. Must be at least 32 characters. If not set, Logwiz generates one on first startup and persists it to a .secret file next to the database. Values shorter than 32 characters are ignored and the file secret is used instead.
LOGWIZ_DATABASE_PATHNo./data/logwiz.dbPath to the SQLite database file.
ORIGINNoAuto-detectedCanonical public URL of the Logwiz instance. Set this when running behind a reverse proxy or load balancer that rewrites the Host header (e.g. https://logs.example.com).
LOGWIZ_INVITE_EXPIRY_HOURSNo48How long (in hours) an invite link remains valid.
LOGWIZ_RATE_LIMIT_WINDOWNo60Duration (in seconds) of the rate-limit sliding window.
LOGWIZ_RATE_LIMIT_MAXNo100Maximum requests allowed per window per IP.
LOGWIZ_SIGNIN_RATE_LIMIT_MAXNo5Maximum sign-in attempts allowed per window per IP.

Docker Compose example

services:
  logwiz:
    image: ghcr.io/oleksandr-zhyhalo/logwiz:latest
    environment:
      # Required
      LOGWIZ_QUICKWIT_URL: http://quickwit:7280/api/v1
      # Admin account (seeded on first start)
      LOGWIZ_ADMIN_EMAIL: admin@example.com
      LOGWIZ_ADMIN_USERNAME: admin
      LOGWIZ_ADMIN_PASSWORD: change-me-before-going-live
      # Session security
      LOGWIZ_AUTH_SECRET: a-random-string-at-least-32-characters-long
      # Database
      LOGWIZ_DATABASE_PATH: /app/data/logwiz.db
      # Public URL (required behind a reverse proxy)
      ORIGIN: https://logs.example.com
      # Invites
      LOGWIZ_INVITE_EXPIRY_HOURS: 48
      # Rate limiting
      LOGWIZ_RATE_LIMIT_WINDOW: 60
      LOGWIZ_RATE_LIMIT_MAX: 100
      LOGWIZ_SIGNIN_RATE_LIMIT_MAX: 5
    ports:
      - "8282:8282"
    volumes:
      - logwiz-data:/app/data