joplin-server

by 0hlov3

Helm chartv1.0.4App 3.7.3

This server allows you to sync any Joplin client

About this chart

Joplin Server Chart

Breaking change: Chart >= 1.0.0 is not compatible with upgrades from earlier versions. The Bitnami PostgreSQL sub-chart has been removed and the values schema was restructured. See the migration note below before proceeding.

Add the Chart

helm repo add schoenwald https://charts.schoenwald.aero
helm repo update schoenwald

Show versions

helm search repo schoenwald/joplin-server

Database backends

joplin.database.clientUse case
sqlite (default)Testing, development, single-user
pgProduction, multi-user

SQLite (default)

No extra configuration needed. The database file lives at /home/joplin/.config/joplin-server/ inside the container — enable persistence so it survives pod restarts:

persistence:
  enabled: true
  mountPath: /home/joplin/.config/joplin-server
  size: 2Gi

Note: SQLite is not suitable for production or multi-user deployments.

PostgreSQL

Provision PostgreSQL externally, set joplin.database.client: pg, and supply the credentials via joplin.postgres.* or a Kubernetes Secret.

Create Namespace

kubectl create namespace joplin --dry-run=client -o yaml | kubectl apply -f -

Configure PostgreSQL credentials

Option A — plain values (not recommended for production)

joplin:
  postgres:
    host: my-postgres.example.com
    port: 5432
    database: joplin-server
    user: joplin
    password: supersecret

Option B — existing Secret (recommended)

kubectl create secret generic joplin-postgres \
  --namespace joplin \
  --from-literal=password='supersecret'
joplin:
  postgres:
    host: my-postgres.example.com
    database: joplin-server
    user: joplin
    existingSecret: joplin-postgres
    existingSecretPasswordKey: password

Configure Mailer (optional)

Create the Secret when .Values.joplin.mailer.enabled is true. All keys must be present even if empty.

kubectl create secret generic joplin-mailer \
  --namespace joplin \
  --from-literal=mailerHost='' \
  --from-literal=mailerPort='' \
  --from-literal=mailerSecure='' \
  --from-literal=mailerAuthUser='' \
  --from-literal=mailerAuthPassword='' \
  --from-literal=mailerNoreplyName='' \
  --from-literal=mailerNoreplyEmail=''

Configure Storage (optional)

The default storage driver keeps all data in PostgreSQL (Type=Database). To use filesystem storage, enable persistence and point the driver at the mount path:

joplin:
  storage:
    driver: "Type=Filesystem; Path=/data"

persistence:
  enabled: true
  mountPath: /data
  size: 10Gi

For S3:

joplin:
  storage:
    driver: "Type=S3; Region=us-east-1; AccessKeyId=…; SecretAccessKeyId=…; Bucket=my-bucket"

Deploy

helm upgrade --install joplin schoenwald/joplin-server \
  --namespace joplin \
  --create-namespace \
  -f my-values.yaml

Migration from chart < 1.0.0

  1. Back up your data — dump the PostgreSQL database managed by the old Bitnami sub-chart.
  2. Restore the dump into your external PostgreSQL instance.
  3. Uninstall the old release: helm uninstall joplin -n joplin
  4. Deploy fresh with the new values schema shown above.

There is no in-place upgrade path between chart versions < 1.0.0 and >= 1.0.0.

Parameters

Global parameters

NameDescriptionValue
replicaCountNumber of Joplin Server replicas1

Image parameters

NameDescriptionValue
image.repositoryDocker image repositoryjoplin/server
image.pullPolicyImage pull policyIfNotPresent
image.tagImage tag (overrides the chart appVersion when set)""
imagePullSecretsList of image pull secret names[]
nameOverrideOverride for the chart name""
fullnameOverrideOverride for the full release name""

Joplin parameters

NameDescriptionValue
joplin.appBaseUrlPublicly reachable base URL of the server (e.g. https://joplin.example.com)http://localhost:22300
joplin.appPortPort the Joplin Server process listens on inside the container22300
joplin.database.clientDatabase backend. sqlite for testing/single-user; pg for productionsqlite
joplin.postgres.hostPostgreSQL hostlocalhost
joplin.postgres.portPostgreSQL port5432
joplin.postgres.databasePostgreSQL database namejoplin-server
joplin.postgres.userPostgreSQL usernamejoplin
joplin.postgres.passwordPlain-text PostgreSQL password. Ignored when existingSecret is set. Do NOT use in production.""
joplin.postgres.existingSecretName of an existing Secret containing the PostgreSQL password""
joplin.postgres.existingSecretPasswordKeyKey inside the Secret that holds the PostgreSQL passwordpassword
joplin.postgres.sslModeNoVerifyConnect via POSTGRES_CONNECTION_STRING with ?sslmode=no-verify appendedfalse
joplin.storage.driverSTORAGE_DRIVER passed verbatim to Joplin Server. Examples: Type=Database, Type=Filesystem; Path=/data, Type=S3; Region=…Type=Database
joplin.storage.driverFallbackOptional STORAGE_DRIVER_FALLBACK value for migration scenarios""
joplin.mailer.enabledEnable mailer support. Requires an existing Secret named by joplin.mailer.existingSecretNamefalse
joplin.mailer.existingSecretNameName of the Secret with mailer credentials (keys: mailerHost, mailerPort, mailerSecure, mailerAuthUser, mailerAuthPassword, mailerNoreplyName, mailerNoreplyEmail)joplin-mailer

Persistence parameters

NameDescriptionValue
persistence.enabledEnable persistent storage. Required for SQLite and Filesystem storage backends.false
persistence.mountPathMount path inside the container/home/joplin/.config/joplin-server
persistence.storageClassStorageClass for the PVC. Leave empty to use the cluster default.""
persistence.accessModePVC access modeReadWriteOnce
persistence.sizePVC size1Gi
persistence.existingClaimName of an existing PVC to use instead of creating one""

Service Account parameters

NameDescriptionValue
serviceAccount.createCreate a ServiceAccount for the podtrue
serviceAccount.annotationsAnnotations to add to the ServiceAccount{}
serviceAccount.nameName of the ServiceAccount. Auto-generated when empty and serviceAccount.create is true.""

Pod parameters

NameDescriptionValue
podAnnotationsAnnotations to add to the pod{}
podSecurityContext.fsGroupGroup ID for the pod filesystem1001
securityContext.capabilities.dropCapabilities to drop from the container[]
securityContext.readOnlyRootFilesystemMount the container root filesystem as read-onlyfalse
securityContext.runAsNonRootRequire the container to run as a non-root usertrue
securityContext.runAsUserUser ID to run the container process1001
securityContext.runAsGroupGroup ID to run the container process1001

Service parameters

NameDescriptionValue
service.typeKubernetes Service typeClusterIP
service.portService port80

Ingress parameters

NameDescriptionValue
ingress.enabledEnable Ingressfalse
ingress.classNameIngressClass name (e.g. nginx)nginx
ingress.annotationsAdditional annotations for the Ingress{}
ingress.hosts[0].hostHostname for the Ingress rulechart-example.local
ingress.hosts[0].paths[0].pathURL path/
ingress.hosts[0].paths[0].pathTypePath type (Exact, Prefix, ImplementationSpecific)ImplementationSpecific
ingress.tlsTLS configuration for the Ingress[]

Resource parameters

NameDescriptionValue
resources.limits.memoryMemory limit512Mi
resources.limits.cpuCPU limit500m
resources.requests.memoryMemory request256Mi
resources.requests.cpuCPU request100m

Autoscaling parameters

NameDescriptionValue
autoscaling.enabledEnable Horizontal Pod Autoscalerfalse
autoscaling.minReplicasMinimum number of replicas1
autoscaling.maxReplicasMaximum number of replicas5
autoscaling.targetCPUUtilizationPercentageTarget CPU utilization percentage80

Scheduling parameters

NameDescriptionValue
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assi

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 v1.0.4 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