joplin-server

by rtomik

Helm chartv0.0.2App 3.4.2Verified publisher

Joplin Server helm chart for Kubernetes - Note-taking and synchronization server

About this chart

Joplin Server Helm Chart

A Helm chart for deploying Joplin Server on Kubernetes - Note-taking and synchronization server.

Introduction

This chart deploys Joplin Server on a Kubernetes cluster using the Helm package manager. Joplin Server is the synchronization server for Joplin, allowing you to sync your notes across devices.

Source code can be found here:

  • https://github.com/rtomik/helm-charts/tree/main/charts/joplin-server

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.0+
  • External PostgreSQL database (Required - Joplin Server does not support SQLite in production)
  • PV provisioner support in the underlying infrastructure (if persistence is needed for file storage)

Installing the Chart

To install the chart with the release name joplin-server:

$ helm repo add joplin-chart https://rtomik.github.io/helm-charts
$ helm install joplin-server joplin-chart/joplin-server

Important: You must configure PostgreSQL database settings before installation.

Uninstalling the Chart

To uninstall/delete the joplin-server deployment:

$ helm uninstall joplin-server

Parameters

Global parameters

NameDescriptionValue
nameOverrideString to partially override the release name""
fullnameOverrideString to fully override the release name""

Image parameters

NameDescriptionValue
image.repositoryJoplin Server image repositoryjoplin/server
image.tagJoplin Server image taglatest
image.pullPolicyJoplin Server image pull policyIfNotPresent

Deployment parameters

NameDescriptionValue
replicaCountNumber of Joplin Server replicas1
revisionHistoryLimitNumber of revisions to retain for rollback3
podSecurityContext.runAsNonRootRun containers as non-root usertrue
podSecurityContext.runAsUserUser ID for the container1001
podSecurityContext.fsGroupGroup ID for the container filesystem1001
containerSecurityContextSecurity context for the containerSee values.yaml
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment[]
affinityAffinity for pod assignment{}

Service parameters

NameDescriptionValue
service.typeKubernetes Service typeClusterIP
service.portService HTTP port22300

Ingress parameters

NameDescriptionValue
ingress.enabledEnable ingress record generationfalse
ingress.classNameIngressClass name""
ingress.annotationsAdditional annotations for the IngressSee values.yaml
ingress.hostsArray of host and path objectsSee values.yaml
ingress.tlsTLS configurationSee values.yaml

Environment variables

NameDescriptionValue
env.APP_PORTApplication port22300
env.APP_BASE_URLBase URL for the applicationhttp://localhost:22300
env.DB_CLIENTDatabase client (always pg for PostgreSQL)pg

PostgreSQL configuration (Required)

NameDescriptionValue
postgresql.external.enabledUse external PostgreSQL database (required)true
postgresql.external.hostPostgreSQL host""
postgresql.external.portPostgreSQL port5432
postgresql.external.databasePostgreSQL database namejoplin
postgresql.external.userPostgreSQL usernamejoplin
postgresql.external.passwordPostgreSQL password""
postgresql.external.existingSecretName of existing secret with PostgreSQL credentials""
postgresql.external.userKeyKey in the secret for usernameusername
postgresql.external.passwordKeyKey in the secret for passwordpassword
postgresql.external.hostKeyKey in the secret for host (optional)""
postgresql.external.portKeyKey in the secret for port (optional)""
postgresql.external.databaseKeyKey in the secret for database name (optional)""

Joplin Server Configuration

Admin Settings

NameDescriptionValue
joplin.admin.emailFirst admin user email""
joplin.admin.passwordFirst admin user password""
joplin.admin.existingSecretName of existing secret with admin credentials""
joplin.admin.emailKeyKey in the secret for admin emailadmin-email
joplin.admin.passwordKeyKey in the secret for admin passwordadmin-password

Server Settings

NameDescriptionValue
joplin.server.maxRequestBodySizeMaximum request body size200mb
joplin.server.sessionTimeoutSession timeout in seconds86400
joplin.server.enableUserRegistrationEnable/disable user registrationfalse
joplin.server.enableSharingEnable/disable sharingtrue
joplin.server.enablePublicNotesEnable/disable public notestrue

Storage Settings

NameDescriptionValue
joplin.storage.driverStorage driver (filesystem, s3, azure)filesystem
joplin.storage.filesystemPathPath for filesystem storage/var/lib/joplin

S3 Storage (Optional)

NameDescriptionValue
joplin.storage.s3.bucketS3 bucket name""
joplin.storage.s3.regionS3 region""
joplin.storage.s3.accessKeyIdS3 access key ID""
joplin.storage.s3.secretAccessKeyS3 secret access key""
joplin.storage.s3.endpointS3 endpoint (for S3-compatible services)""
joplin.storage.s3.existingSecretName of existing secret with S3 credentials""
joplin.storage.s3.accessKeyIdKeyKey in the secret for access key IDaccess-key-id
joplin.storage.s3.secretAccessKeyKeyKey in the secret for secret access keysecret-access-key

Email Settings (Optional)

NameDescriptionValue
joplin.email.enabledEnable email notificationsfalse
joplin.email.hostSMTP host""
joplin.email.portSMTP port587
joplin.email.usernameSMTP username""
joplin.email.passwordSMTP password""
joplin.email.fromEmailFrom email address""
joplin.email.fromNameFrom nameJoplin Server
joplin.email.secureUse TLS/SSLtrue
joplin.email.existingSecretName of existing secret with email credentials""
joplin.email.usernameKeyKey in the secret for SMTP usernameemail-username
joplin.email.passwordKeyKey in the secret for SMTP passwordemail-password

Logging Settings

NameDescriptionValue
joplin.logging.levelLog level (error, warn, info, debug)info
joplin.logging.targetLog target (console, file)console

Persistence settings (for filesystem storage)

NameDescriptionValue
persistence.enabledEnable persistence using PVCtrue
persistence.storageClassPVC Storage Class""
persistence.accessModePVC Access ModeReadWriteOnce
persistence.sizePVC Size10Gi
persistence.annotationsAnnotations for PVC{}

Transcribe Service (Optional AI Transcription)

NameDescriptionValue
transcribe.enabledEnable transcribe servicefalse
transcribe.image.repositoryTranscribe image repositoryjoplin/transcribe
transcribe.image.tagTranscribe image taglatest
transcribe.image.pullPolicyTranscribe image pull policyIfNotPresent
transcribe.api.keyShared secret between Joplin and Transcribe""
transcribe.api.existingSecretName of existing secret with transcribe API key""
transcribe.api.keyNameKey in the secret for transcribe API keytranscribe-api-key
transcribe.service.typeTranscribe service typeClusterIP
transcribe.service.portTranscribe service port4567
transcribe.htr.imagesFolderHTR images folder path/app/images

Transcribe Database (Separate from main database)

NameDescriptionValue
transcribe.database.hostTranscribe database host""
transcribe.database.portTranscribe database port5432
transcribe.database.databaseTranscribe database nametranscribe
transcribe.database.userTranscribe database usernametranscribe
transcribe.database.passwordTranscribe database password""
transcribe.database.existingSecretName of existing secret with transcribe DB credentials""
transcribe.database.userKeyKey in the secret for username`

Deploy joplin-server with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has joplin-server 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 chartjoplin-server is pinned at v0.0.2 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