LogSure

Getting started

LogSure is one process that keeps its data in SQLite today, with Postgres and MySQL on the way. The image ghcr.io/logsure/server holds the engine and the web console, so one container is the whole service: the console, its API, the ingest API your apps call, and the MCP server for AI assistants.

LogSure is in early access. The image, the Compose files and the full install guide go to early-access users with their invitation; join the list to get one.

This page gets a server running on your machine and your first app counting. The full guide, with HTTPS, backups, upgrades and every setting, comes with your invitation.

Docker Compose

You need Docker with Compose 2.24 or later, and the Compose files from your invitation. In their folder:

cp .env.example .env

Fill in .env:

docker compose up -d

Open http://localhost:8080 and sign in with any username and ADMIN_PASSWORD. The data lives in the logsure-data volume: docker compose down keeps it, docker compose down -v deletes it.

Docker

The quickest start: generate a password and run the image. Sign in at http://localhost:8080 with any username and that password.

PASSWORD=$(uuidgen); echo "Password: $PASSWORD"
docker run -d --name logsure -p 8080:8080 -e ADMIN_PASSWORD=$PASSWORD \
  -e CONSOLE_HOST=localhost:8080 -e COOKIE_SECURE=0 ghcr.io/logsure/server

That container keeps its data only while it exists. For an install you keep, add a named volume for the data, a DATA_KEY that seals email addresses at rest, and a restart policy (remove the quick-start container first with docker rm -f logsure):

export ADMIN_PASSWORD=$(uuidgen) DATA_KEY=$(openssl rand -hex 32)
echo "ADMIN_PASSWORD=$ADMIN_PASSWORD DATA_KEY=$DATA_KEY"   # keep both
docker run -d --name logsure --restart unless-stopped -p 8080:8080 -v logsure-data:/data \
  -e ADMIN_PASSWORD -e DATA_KEY -e CONSOLE_HOST=localhost:8080 \
  -e COOKIE_SECURE=0 -e TRUST_PROXY=0 ghcr.io/logsure/server:latest

The image runs as uid 1000, keeps everything in /data, listens on 8080 and has a health check on /_care/health. It is built for amd64 and arm64. Tags: latest and a version such as 0.1.0 for releases, main for the newest commit.

On a real domain

Put LogSure behind a proxy that terminates TLS, set CONSOLE_HOST to the console's host (for example logsure.example.com) and leave COOKIE_SECURE at its default, 1. The Compose files include a Caddy file that gets the certificate for you:

# in .env: DOMAIN=logsure.example.com
docker compose -f docker-compose.yml -f docker-compose.caddy.yml up -d

The install guide covers other proxies and TRUST_PROXY.

How far does one server go?

One server handles most teams comfortably. At very high volume, tens of millions of events a month, or when you need high availability, the multi-node Cloud and Enterprise plans are the path: a cluster that is managed automatically, run by us or in your own infrastructure. Both are offered on request; see Pricing.

LogSure on one server is in early access, with every feature. The managed multi-node cluster is a commercial offering, as Cloud or as an Enterprise self-hosted licence.

The main settings

VariableDefault
ADMIN_PASSWORDThe root password (20 characters or more); without it the console is closed
CONSOLE_HOSTThe console's host, required with ADMIN_PASSWORD
DATA_KEY32 bytes (64 hex characters) that seal email addresses at rest
DATA_DIR./datacare.db, attachments, app icons and backups
PORT8080Where to listen
PUBLIC_PREFIX/_careThe ingest API's path on every host
TRUST_PROXYcloudflareWhose headers give the visitor's address and country; 0 for none
COOKIE_SECURE10 for plain http in development
NOTIFY_WEBHOOKAn https:// webhook for new requests and signups

Retention, daily caps, attachment sizes and backups have settings too; every variable is in the install guide.

Your first app

  1. Sign in. The first time, any username works with ADMIN_PASSWORD.
  2. Under Settings › Apps, add an app: an id such as acme-notes, a name, and the domains it runs on (localhost:5173 while developing).
  3. Open the app's page in Settings: its Setup section has every snippet filled in for that app. Add the script tag to your site; see Add the tracker.
  4. Open your site. The visit shows on the overview within a few seconds.
Under Settings › Security, set your own username and password and turn on two-factor sign-in. The iPhone, Mac and terminal apps and AI connections need two-factor sign-in on, because they skip the password.

Locked out

Start the engine once with TOTP_RESET=1 (turns two-factor sign-in off) or PASSWORD_RESET=1 (deletes the username and password set in the console, so ADMIN_PASSWORD signs in again), then remove it.