Deploy Logwell

Self-hosted logging platform with SSE, full text search, and OTLP ingestion

Deploy Logwell

divkix/logwell:latest

divkix/logwell:latest

Just deployed

/var/lib/postgresql/data

Deploy and Host Logwell on Railway

Logwell is a lightweight, self-hosted log aggregation platform built with SvelteKit and PostgreSQL. It provides real-time streaming, full-text search, and OTLP-compatible ingestion without the complexity of ELK or the costs of SaaS solutions. Engineered for simplicity and performance, Logwell allows you to own your data completely while providing a clean UI for viewing and searching logs.

About Hosting Logwell

Hosting Logwell requires a PostgreSQL database and a Bun runtime environment. The platform leverages PostgreSQL's built-in tsvector capabilities for high-performance full-text search, eliminating the need for Elasticsearch or separate search clusters. Railway's deployment is fully automated—the template provisions a PostgreSQL instance, configures all required environment variables, and establishes health monitoring. The application runs database migrations on startup and handles session encryption automatically.

Common Use Cases

  • Centralized Logging: Aggregate logs for side projects, startups, and small teams without worrying about per-GB pricing or retention limits
  • Real-time Monitoring: Debug applications during development with live SSE (Server-Sent Events) log streaming
  • Data Sovereignty: A self-hosted alternative to Datadog, Logtail, or Papertrail that ensures complete ownership and privacy of your log data
  • OTLP Integration: seamless compatibility with OpenTelemetry SDKs, serving as a backend for apps already using OTLP exporters

Dependencies for Logwell Hosting

  • PostgreSQL 12+: Primary database used for storing logs, user sessions, and executing full-text search queries via tsvector
  • Bun 1.0+: The JavaScript runtime used to power the SvelteKit backend (included in the Docker image)

Deployment Dependencies

Required Environment Variables

VariableDescription
BETTER_AUTH_SECRETSecret key for session encryption (auto-generated by Railway)
DATABASE_URLPostgreSQL connection string (auto-set by Railway)

Optional Configuration

VariableDefaultDescription
ADMIN_PASSWORDnullIf set, seeds an initial admin account ([email protected]) on startup

Why Deploy Logwell on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Logwell on Railway, you get:

  • One-click provisioning of the required PostgreSQL database with zero configuration
  • Automatic migrations that run immediately upon deployment to set up your schema
  • Secure session management with auto-generated encryption secrets
  • Full-stack hosting that keeps your log aggregator close to your other services
  • Vertical scaling to handle increased log volume without migration headaches

Railway handles the infrastructure complexity so you can focus on debugging and monitoring your applications.


Template Content

divkix/logwell:latest

ghcr.io/divkix/logwell:latest

More templates in this category

View Template
OpenTelemetry Collector and Backend
OpenTelemetry Collector with Backend Stack

View Template
pgweb | Postgres UI
View and query your Postgres instance with a sleek and minimalistic UI.

View Template
Elasticsearch-Kibana
Elasticsearch is a search engine based on the Lucene library.