Sign inSign up

11notes/joplin

By 11notes

โ€ขUpdated 5 days ago

Run joplin smaller, lightweight and more secure

Buildkit cache
Image
0

9.3K

11notes/joplin repository overview

banner

โ JOPLIN

size5pxpulls5px5pxswiss_made

Run joplin smaller, lightweight and more secure

โ INTRODUCTION ๐Ÿ“ข

Joplinโ  (created by laurent22โ ) is a free, open source note taking and to-do application, which can handle a large number of notes organised into notebooks. The notes are searchable, can be copied, tagged and modified either from the applications directly or from your own text editor. The notes are in Markdown format.

โ SYNOPSIS ๐Ÿ“–

What can I do with this? This image will give you a rootless and lightweight Joplin (SERVER not client!) installation directly compiled from source and with a few custom optimizations.

โ UNIQUE VALUE PROPOSITION ๐Ÿ’ถ

Why should I run this image and not the other image(s) that already exist? Good question! Because ...

  • ... this image runs rootlessโ  as 1000:1000
  • ... this image is auto updated to the latest version via CI/CD
  • ... this image is built and compiled from source
  • ... this image has a health check
  • ... this image runs read-only
  • ... this image is created via a secure and pinned CI/CD process
  • ... this image is very small

If you value security, simplicity and optimizations to the extreme, then this image might be for you.

โ COMPARISON ๐Ÿ

Below you find a comparison between this image and the most used or original one.

imagesize on diskinit default asdistrolessโ supported architectures
11notes/joplin2GB1000:1000โŒamd64, arm64
joplin/server607MB1001:1001โŒamd64, arm64

Why is this image not distroless? Because the developers of this app need to dynamically load modules into node and that only works with dynamic loading enabled, which is only possible in a dynamic linked binary.

โ VOLUMES ๐Ÿ“

  • /joplin/etc - Directory of your SAML configuration files
  • /joplin/var - Directory of your files (default storage provider)

โ COMPOSE โœ‚๏ธ

name: "joplin"

x-lockdown: &lockdown
  # prevents write access to the image itself
  read_only: true
  # prevents any process within the container to gain more privileges
  security_opt:
    - "no-new-privileges=true"

services:
  server:
    depends_on:
      postgres:
        condition: "service_healthy"
        restart: true
    image: "11notes/joplin:3.7.18"
    <<: *lockdown
    environment:
      TZ: "Europe/Zurich"
      APP_BASE_URL: "https://${FQDN}"
      POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
      SAML_ENABLED: true
      DISABLE_BUILTIN_LOGIN_FLOW: true
      SAML_IDP_XML: |-
        <md:EntityDescriptor entityID="https://${SSO_FQDN}/realms/${SSO_REALM}">
          <md:IDPSSODescriptor WantAuthnRequestsSigned="false" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
            <md:KeyDescriptor use="signing">
              <ds:KeyInfo>
                <ds:KeyName>${SSO_CRT_NAME}</ds:KeyName>
                <ds:X509Data>
                  <ds:X509Certificate>${SSO_CRT_BASE64}</ds:X509Certificate>
                </ds:X509Data>
              </ds:KeyInfo>
            </md:KeyDescriptor>
            <md:ArtifactResolutionService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="https://${SSO_FQDN}/realms/${SSO_REALM}/protocol/saml/resolve" index="0"/>
            <md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://${SSO_FQDN}/realms/${SSO_REALM}/protocol/saml"/>
            <md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://${SSO_FQDN}/realms/${SSO_REALM}/protocol/saml"/>
            <md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" Location="https://${SSO_FQDN}/realms/${SSO_REALM}/protocol/saml"/>
            <md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="https://${SSO_FQDN}/realms/${SSO_REALM}/protocol/saml"/>
            <md:NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:persistent</md:NameIDFormat>
            <md:NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</md:NameIDFormat>
            <md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</md:NameIDFormat>
            <md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</md:NameIDFormat>
            <md:SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://${SSO_FQDN}/realms/${SSO_REALM}/protocol/saml"/>
            <md:SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://${SSO_FQDN}/realms/${SSO_REALM}/protocol/saml"/>
            <md:SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="https://${SSO_FQDN}/realms/${SSO_REALM}/protocol/saml"/>
            <md:SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" Location="https://${SSO_FQDN}/realms/${SSO_REALM}/protocol/saml"/>
          </md:IDPSSODescriptor>
        </md:EntityDescriptor>
      SAML_SP_XML: |-
        <?xml version="1.0"?>
        <md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" validUntil="2026-12-31T23:59:59Z" cacheDuration="PT604800S" entityID="${SSO_CLIENT_ID}">
            <md:SPSSODescriptor AuthnRequestsSigned="false" WantAssertionsSigned="false" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
                <md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</md:NameIDFormat>
                <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://${FQDN}/api/saml" index="0" />
            </md:SPSSODescriptor>
        </md:EntityDescriptor>
    volumes:
      - "server.etc:/joplin/etc"
      - "server.var:/joplin/var"
    tmpfs:
      - "/tmp:uid=1000,gid=1000"
    ports:
      - "3000:22300/tcp"
    networks:
      frontend:
      backend:
    restart: "always"

  postgres:
    # for more information about this image checkout:
    # https://github.com/11notes/docker-postgres
    image: "11notes/postgres:18"
    <<: *lockdown
    environment:
      TZ: "Europe/Zurich"
      POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
      POSTGRES_BACKUP_SCHEDULE: "0 3 * * *"
    networks:
      backend:
    volumes:
      - "postgres.etc:/postgres/etc"
      - "postgres.var:/postgres/var"
      - "postgres.backup:/postgres/backup"
    tmpfs:
      - "/postgres/run:uid=1000,gid=1000"
      - "/postgres/log:uid=1000,gid=1000"
    restart: "always"

volumes:
  server.etc:
  server.var:
  postgres.etc:
  postgres.var:
  postgres.backup:

networks:
  frontend:
  backend:
    internal: true

To find out how you can change the default UID/GID of this container image, consult the RTFMโ .

The compose example uses SAML for authentication and disables normal authentication. To use SAML, you need to set a few important properties in your IdP:

  • The SAML response needs to contain the field email
  • The SAML response needs to contain the field displayName
  • The SAML response needs to be signed
  • The redirect URL needs to point at FQDN/api/saml

For Keycloak simply create the required User Property mappers, for all other IdPs check their manual.

โ DEFAULT SETTINGS ๐Ÿ—ƒ๏ธ

ParameterValueDescription
userdockeruser name
uid1000user identifierโ 
gid1000group identifierโ 
home/joplinhome directory of user docker

โ ENVIRONMENT ๐Ÿ“

ParameterValueDefault
TZTime Zoneโ 
DEBUGWill activate debug option for container image and app (if available)
APP_BASE_URLFQDN of the app
MAX_TIME_DRIFTenable or disable NTP check for time drift0
DB_CLIENTwhich database backend to usepg
POSTGRES_HOSTname of postgres hostpostgres
POSTGRES_DATABASEname of postgres databasepostgres
POSTGRES_USERname of postgres userpostgres
POSTGRES_PASSWORDpassword for postgres user
STORAGE_DRIVERwhich storage driver to useType=Filesystem;Path=/joplin/var
SAML_ENABLEDenable SAML
DISABLE_BUILTIN_LOGIN_FLOWdisable normal login if SAML is enabled
SAML_IDP_CONFIG_FILESAML IDP XML file (can be set inline via SAML_IDP_XML )/joplin/etc/idp.xml
SAML_SP_CONFIG_FILESAML SP XML file (can be set inline via SAML_SP_XML )/joplin/etc/sp.xml
SAML_IDP_XMLinline XML for SAML IDP
SAML_SP_XMLinline XML for SAML SP

โ MAIN TAGS ๐Ÿท๏ธ

These are the main tags for the image. There is also a tag for each commit and its shorthand sha256 value.

โ There is no latest tag, what am I supposed to do about updates?

It is my opinion that the :latest tag is a bad habbit and should not be used at all. Many developers introduce breaking changes in new releases. This would messed up everything for people who use :latest. If you donโ€™t want to change the tag to the latest semverโ , simply use the short versions of semverโ . Instead of using :3.7.18 you can use :3 or :3.7. Since on each new version these tags are updated to the latest version of the software, using them is identical to using :latest but at least fixed to a major or minor version. Which in theory should not introduce breaking changes.

If you still insist on having the bleeding edge release of this app, simply use the :rolling tag, but be warned! You will get the latest version of the app instantly, regardless of breaking changes or security issues or what so ever. You do this at your own risk!

โ REGISTRIES โ˜๏ธ

docker pull 11notes/joplin:3.7.18
docker pull ghcr.io/11notes/joplin:3.7.18
docker pull quay.io/11notes/joplin:3.7.18

โ UNRAID VERSION ๐ŸŸ 

This image supports unraid by default. Simply add -unraid to any tag and the image will run as 99:100 instead of 1000:1000.

โ NOBODY VERSION ๐Ÿ‘ป

This image supports nobody by default. Simply add -nobody to any tag and the image will run as 65534:65534 instead of 1000:1000.

โ SOURCE ๐Ÿ’พ

โ PARENT IMAGE ๐Ÿ›๏ธ

  • [node:lts-stable](${{ json_readme_parent_url }})

โ BUILT WITH ๐Ÿงฐ

โ GENERAL TIPS ๐Ÿ“Œ

  • Use a reverse proxy like Traefik, Nginx, HAproxy to terminate TLS and to protect your endpoints
  • Use Letโ€™s Encrypt DNS-01 challenge to obtain valid SSL certificates for your services

โ ElevenNotesโ„ข๏ธ

This image is provided to you at your own risk. Always make backups before updating an image to a different version. Check the releasesโ  for breaking changes. If you have any problems with using this image simply raise an issueโ , thanks. If you have a question or inputs please create a new discussionโ  instead of an issue. You can find all my other repositories on githubโ .

created 15.09.2026, 06:16:42 (CET)

Tag summary

Content type

Image

Digest

sha256:7cf47f3f3โ€ฆ

Size

447.3 MB

Last updated

5 days ago

docker pull 11notes/joplin:3.7.18