SiYuan

stack Documents / Productivity / Wiki

Note-taking app built from blocks, so any paragraph can be linked, embedded or queried from anywhere else. Markdown, backlinks, a graph view and daily notes.

Install SiYuan

It isn't in the main Portainer Templates list yet, so use this one. Portainer takes one URL at a time, so it swaps out whatever list you had before.

In Portainer, head to Settings --> App Templates, paste this in as the URL and save.

https://raw.githubusercontent.com/NotAFlightRisk/portainer-templates-extras/main/templates.json
  1. Open App Templates and pick SiYuan.
  2. Fill in Access code. Everything else can stay as it is.
  3. Hit Deploy the stack, then open http://<your-server>:6806 in a browser.

Before you start

Set the access code before you deploy, since the stack won't start without one. Then open http://<your-host>:6806 (or whichever port you picked) and enter it. It takes half a minute or so to start. Every note, asset and setting lives in the siyuan-workspace volume. To change the code later, just change it here and redeploy. Docs: github.com/siyuan-note/siyuan

Settings

What the Portainer form asks for. With compose they go in the .env file instead.

VariableWhat it's forDefault
SIYUAN_ACCESS_AUTH_CODEAccess code (required) What you type in to open your notes, and the only thing between them and anyone who can reach the port. Make it long, or generate one with: openssl rand -hex 16 Needs filling in
SIYUAN_PORTHost port for the web UI 6806
SIYUAN_TZTimezone Like Europe/London. Daily notes and timestamps use it. UTC

Services

The containers this stack runs, with ports as they come out of the box.

ServiceImagePorts
siyuanb3log/siyuan:latest6806:6806

More apps