HeadlinesBriefing favicon HeadlinesBriefing.com

Open Run Adds Litestream Support for SQLite Apps on Docker and Kubernetes

Hacker News •
×

Open Run, an open-source self-hosted Git Ops platform, now features built-in Litestream support for SQLite applications. This integration eliminates the need for developers to manually configure object storage or implement restore logic. App databases are continuously replicated to AWS S3, Cloudflare R2, Min IO, or Seaweed FS.

When Open Run detects an empty or recreated volume, it automatically restores the database before starting the application. The setup operates seamlessly on both single-node Docker/Podman environments and Kubernetes clusters. For internal tools and small web apps, this approach leverages SQLite's file-backed nature and fast reads while providing durable off-node backups and point-in-time recovery.

Developers define Litestream settings once in the server configuration, while Open Run manages replication and restoration outside the application container. The app image remains unchanged, enabling new SQLite apps to use replication without Litestream-specific setup. On Docker and Podman, Litestream runs in a per-app companion container that shares the app's data volume, performing a final sync before stopping when the app scales to zero.

On Kubernetes, a native Litestream sidecar handles restoration and sync during shutdown. All app management, including SQLite binding, is driven through Git Ops, allowing declarative configuration alongside other platform settings.