SiYuan

Privacy-first knowledge base with blocks, backlinks and Markdown

  • ghcr.io/hsinghhira/siyuan:latest
  • v3.8.12
  • Updated 24 Nov 2026
  • port 6807
  • amd64 · arm64
  • Productivity
  • 47.4k stars

Open the app

Notes

http://localhost:6807/

About SiYuan

SiYuan is a note-taking app and personal knowledge base. Every paragraph is a block you can link to, embed and search, and your notes stay on your ZimaOS in plain files.

Features

  • Block editor with Markdown, tables, math, diagrams and code
  • Links and backlinks between any blocks, with a graph view
  • Embedded queries, database views and flashcards
  • Full-text search, tags and history
  • Export to Markdown, PDF, Word and HTML

How to use

  1. Open SiYuan and type the access code from the CREDENTIALS box in the app's logs.
  2. Make a notebook and start writing.

Before you install

The access code is made on first start and shown in the app's logs, in the box marked CREDENTIALS; it is kept in /DATA/AppData/siyuan/workspace/.icestore-access-code. To pick your own, add SIYUAN_ACCESS_AUTH_CODE in the app settings. SIYUAN_LANG=en sets the language on every start: remove it to keep the language you choose in Settings. Your notes are in /DATA/AppData/siyuan/workspace; back that folder up.

The settings in the first table are already in the app settings. To use any other one, open the app settings, add the variable with your value, save, and the app restarts with it. A setting you leave out uses its default.

In the app settings

VariableDefault valueDescription
TZ$TZYour time zone. It is filled in from your ZimaOS time zone.
PUID$PUIDThe user that owns the workspace files. It is filled in by ZimaOS.
PGID$PGIDThe group that owns the workspace files. It is filled in by ZimaOS.
SIYUAN_LANGenThe language of the app, like en, de, fr, ja or zh-CN. Remove it to keep the language you pick in Settings.

Sign-in

VariableDefault valueDescription
SIYUAN_ACCESS_AUTH_CODE—The access code (lock screen password). Made on first start and kept in .icestore-access-code in the workspace when left out.
SIYUAN_ACCESS_AUTH_CODE_BYPASS—Set to true to open SiYuan without any access code. Anyone on your network can then read your notes.

Single sign-on

VariableDefault valueDescription
SIYUAN_OIDC_ENABLED—Set to true to sign in with an OpenID Connect provider instead of the access code.
SIYUAN_OIDC_PROVIDER—custom, google, microsoft or github.
SIYUAN_OIDC_CLIENT_ID—The client ID from your provider.
SIYUAN_OIDC_CLIENT_SECRET—The client secret from your provider (required for GitHub).
SIYUAN_OIDC_ISSUER_URL—The issuer address, for custom and microsoft providers.
SIYUAN_OIDC_SCOPES—Extra scopes, comma separated; openid is always included.
SIYUAN_OIDC_REDIRECT_URL—Your https address followed by /api/system/oidc/callback, like https://notes.example.com/api/system/oidc/callback.
SIYUAN_OIDC_ALLOW_ALL—Set to true to let everyone your provider signs in use SiYuan.
SIYUAN_OIDC_CLAIM_RULES—Who may sign in, as JSON, like [{"claim":"email","operator":"equals","values":["[email protected]"]}].
docker-compose.yml
name: siyuan

services:
  siyuan:
    image: ghcr.io/hsinghhira/siyuan:latest
    container_name: siyuan
    restart: unless-stopped
    stop_grace_period: 30s
    network_mode: bridge
    environment:
      - TZ=$TZ
      - PUID=$PUID
      - PGID=$PGID
      - SIYUAN_LANG=en
    ports:
      - target: 6806
        published: "6807"
        protocol: tcp
    volumes:
      - type: bind
        source: /DATA/AppData/$AppID/workspace
        target: /siyuan/workspace
        bind:
          create_host_path: true
    healthcheck:
      test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:6806/"]
      interval: 30s
      timeout: 5s
      retries: 3
      start_period: 30s
    deploy:
      resources:
        limits:
          memory: 2G
        reservations:
          memory: 64M
    labels:
      icon: https://cdn.jsdelivr.net/gh/HSinghHira/IceStore@main/Apps/siyuan/icon.png
    x-casaos:
      id: com.icestore.siyuan
      envs:
        - container: TZ
          description:
            en_US: >-
              Your time zone. It is filled in from your ZimaOS time zone.
        - container: PUID
          description:
            en_US: >-
              The user that owns the workspace files. It is filled in by
              ZimaOS.
        - container: PGID
          description:
            en_US: >-
              The group that owns the workspace files. It is filled in by
              ZimaOS.
        - container: SIYUAN_LANG
          description:
            en_US: >-
              The language of the app, like en, de, fr, ja or zh-CN. Remove
              it to keep the language you pick in Settings.
      ports:
        - container: "6806"
          description:
            en_US: SiYuan web app, published on host as 6807
      volumes:
        - container: /siyuan/workspace
          description:
            en_US: >-
              Your notebooks, settings, history and this install's access
              code (.icestore-access-code). Back it up.

x-casaos:
  id: com.icestore.siyuan
  architectures:
    - amd64
    - arm64
  main: siyuan
  author: HSinghHira
  category: Productivity
  developer: SiYuan
  icon: https://cdn.jsdelivr.net/gh/HSinghHira/IceStore@main/Apps/siyuan/icon.png
  title:
    en_US: SiYuan
  tagline:
    en_US: Privacy-first knowledge base with blocks, backlinks and Markdown
  description:
    en_US: >-
      Visit: [https://icestore.hsinghhira.me/app/siyuan/](https://icestore.hsinghhira.me/app/siyuan/) for full details


      SiYuan is a note-taking app and personal knowledge base. Every
      paragraph is a block you can link to, embed and search, and your notes
      stay on your ZimaOS in plain files.


      **Features**


      - Block editor with Markdown, tables, math, diagrams and code

      - Links and backlinks between any blocks, with a graph view

      - Embedded queries, database views and flashcards

      - Full-text search, tags and history

      - Export to Markdown, PDF, Word and HTML


      **How to use?**


      1. Open SiYuan and type the access code from the CREDENTIALS box in
         the app's logs.

      2. Make a notebook and start writing.
  tips:
    before_install:
      en_US: >-
        1. Start the installation. It is ready in a few seconds.


        2. Open SiYuan. It asks for an access code. The code is in the app's
           logs, in the box marked CREDENTIALS.


        3. To pick your own code, add SIYUAN_ACCESS_AUTH_CODE in the app
           settings.


        4. More settings are on the SiYuan page at
           https://icestore.hsinghhira.me/app/siyuan/ (Variables tab).
  index: /
  port_map: "6807"
  scheme: http
  is_uncontrolled: false
  version: "v3.8.12"
  update_at: "2026-11-24"
  release_notes:
    en_US: |-
      - Updated siyuan v3.8.11 to v3.8.12
      - First IceStore release, on port 6807 (upstream uses 6806)
      - b3log/siyuan v3.8.12, plus a start script that makes this install's access code on first start and keeps it in the workspace
      - Workspace in /DATA/AppData/siyuan/workspace
  repo: "https://github.com/siyuan-note/siyuan"
  support: "https://github.com/siyuan-note/siyuan/issues"
  docs: "https://b3log.org/siyuan/en/"

Install SiYuan

Something not working with SiYuan?

Report it so it gets fixed, or ask for an app that is not here yet.

More Productivity apps

See all