booklore

by HelmForge

Helm chartv2.0.7App 2.3.1Apache-2.0Verified publisher

Self-hosted multi-user digital library with smart shelves, auto metadata, OPDS, and built-in reader for EPUB, PDF, and comics

About this chart

BookLore Helm Chart

A Helm chart for deploying BookLore on Kubernetes. BookLore is a self-hosted, multi-user digital library with smart shelves, automatic metadata fetching, Kobo and KOReader sync, BookDrop imports, OPDS support, and a built-in reader for EPUB, PDF, and comics.

Features

  • Official pinned BookLore image with a configurable runtime listener.
  • Bundled HelmForge MariaDB or an operator-managed external database.
  • Independent persistence for application data, books, and BookDrop imports.
  • Ingress, Gateway API, External Secrets, NetworkPolicy, HPA, PDB, and optional ServiceMonitor resources.
  • Fail-fast validation for unsafe multi-replica storage and incomplete external database or routing contracts.

Prerequisites

  • Kubernetes 1.26+
  • Helm 3.x

Quick start

helm install booklore oci://ghcr.io/helmforgedev/helm/booklore

Parameters

See values.yaml for the full list of configurable parameters.

Architecture

BookLore runs as one Spring Boot Deployment that serves the API and bundled web interface on app.port. A ClusterIP Service targets the named http container port. MariaDB is bundled by default and can be replaced with an external service. Separate storage domains preserve application data, the book library, and the optional BookDrop import directory.

Configuration reference

ParameterDefaultPurpose
replicaCount1Fixed BookLore replica count when HPA is disabled
image.repositoryghcr.io/booklore-app/bookloreOfficial image repository
image.tagv2.3.1Pinned upstream release
app.port6060BookLore HTTP listener and probe port
app.allowedOrigins*Browser origins accepted by upstream CORS
app.diskTypeLOCALLOCAL or read-safe NETWORK storage mode
service.port6060Kubernetes Service-facing port
persistence.data.size10GiApplication data volume size
persistence.books.size50GiManaged book library volume size
persistence.bookdrop.enabledfalseEnable the BookDrop import volume
mariadb.enabledtrueDeploy the bundled MariaDB dependency
database.external.host""External MariaDB host when bundled mode is off
database.external.existingSecret""Secret containing the external DB password
ingress.enabledfalseRender a Kubernetes Ingress
gatewayAPI.enabledfalseRender configured Gateway API HTTPRoutes
externalSecrets.enabledfalseRender ExternalSecret resources
networkPolicy.enabledfalseRestrict ingress and optional egress
autoscaling.enabledfalseRender an HPA subject to RWX validation
pdb.enabledfalseProtect the supported replica during disruption
monitoring.serviceMonitor.enabledfalseRender an opt-in ServiceMonitor

Database

By default the chart deploys a MariaDB instance via the HelmForge MariaDB subchart. To use an external database set mariadb.enabled=false and configure database.external.*.

Exposure

The chart supports both traditional Ingress and Gateway API for external access. See examples/ for ready-to-use configurations.

Persistence

VolumeMountDefaultDescription
data/app/data10GiLibrary data, configuration, metadata
books/books50GiLibrary book files
bookdrop/bookdropdisabledBookDrop import folder

Local filesystems use app.diskType=LOCAL. For network-attached book storage, set app.diskType=NETWORK; upstream then disables file writes and reorganization to avoid unsafe filesystem behavior.

Production

Production deployments should pin the public browser origin, source database credentials from a Secret, protect all three persistent data domains, and keep the application at one replica unless shared-storage concurrency has been validated independently. See docs/production.md and examples/production.yaml.

Examples

  • Simple installation
  • Production installation
  • Ingress exposure
  • Gateway API exposure

Security

  • The pod does not mount a Kubernetes API token by default.
  • The main container drops all capabilities except the four required by the upstream entrypoint to create and switch to its runtime user.
  • Use existing Secrets or External Secrets for production database credentials; inline values remain visible in Helm release state.
  • Restrict app.allowedOrigins to the public HTTPS origin and review outbound NetworkPolicy rules for MariaDB and metadata providers.

Troubleshooting

  • Slow startup: wait for Flyway migrations and inspect the BookLore and MariaDB logs before restarting the pod.
  • Probe failures: verify BOOKLORE_PORT and app.port match, then request /api/v1/healthcheck inside the application container.
  • Database failures: confirm the JDBC host, port, database, username, and Secret key all refer to the same MariaDB instance.
  • Missing books: verify the /books PVC is mounted and that app.diskType matches the underlying filesystem type.
  • Multi-replica validation errors: every enabled persistence volume requires ReadWriteMany; otherwise keep one replica.

Documentation

  • Exposure
  • Storage
  • Production operations
  • Examples

Security Scan: booklore

FrameworkScore
MITRE + NSA + SOC289.90%

Security posture acceptable.

Links

Deploy booklore with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has booklore on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartbooklore is pinned at v2.0.7 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply