HUB
Sign inSign up
obsidian logo

junkerderprovinz/obsidian

By junkerderprovinz

•Updated 2 days ago

Obsidian for Unraid, in your browser via Selkies: your vault on your own server, no VNC client.

Image
0

1.7K

junkerderprovinz/obsidian repository overview

Obsidian: your second brain, behind your own walls

Build  Lint  Docker Pulls  Image Size  Arch  Obsidian  Unraid  License: AGPL-3.0

Obsidian, in your browser. Your vault on your own server, open from any device. No VNC client, no local install.
The full Obsidian desktop app runs inside one container and streams to your browser over Selkies⁠ (H.264 video). Self-hosted LiveSync and the Local REST API with MCP come with it, ready to switch on from the template.


Table of Contents⁠

  1. Download⁠
  2. Support⁠
  3. What it does⁠
  4. Getting started⁠
  5. LiveSync and the REST API⁠
  6. Moving over from linuxserver/obsidian⁠
  7. How AI is used here⁠

1. Download⁠

Server

Install from Unraid's Community Applications Install from the MOS Hub Install from the ZimaOS and CasaOS store Install from the umbrelOS community app store
Install on TrueNAS with a ready-made YAML file Run it on Proxmox VE Run it on a Synology NAS Run it on a QNAP NAS
Run it on a UGREEN NAS Download the docker-compose file Download the source archive


2. Support⁠

A one-knight job: I build it, keep it running, work through the issues and add what people ask for, until nothing is missing. It is free, with no accounts, no telemetry, no ads and no paid tier. No asterisk anywhere. Nothing readable ever leaves your own walls. Forged on evenings and weekends, with heart and stubbornness.

If it has earned a place on your server or computer, toss a coin to your knight: it helps cover the costs and keeps the project alive. It also makes this knight's heart beat a little faster. Three ways below, whichever suits you.

Buy me a coffee PayPal Donate with crypto


3. What it does⁠

  • The real app. This is the Obsidian desktop app itself, unmodified from Obsidian's own GitHub release, for amd64 and arm64. Community plugins, themes and the graph view work as they do on a desktop.
  • Self-hosted LiveSync on board. Fill in your CouchDB in the template and the first start sets LiveSync up in your vault, end-to-end encrypted if you give it a passphrase. Leave the fields empty and LiveSync stays off.
  • The Local REST API with MCP on board. It answers on ports 27123 (HTTP) and 27124 (HTTPS), so scripts and AI tools that speak MCP can read and write your notes at http://<server>:27123/mcp/. The API key can come from the template.
  • Back on its own. A health check asks the REST API every 30 seconds. If it stops answering twice in a row, the container restarts Obsidian, not itself, and Unraid shows the container as unhealthy until it is back. Close Obsidian by accident and it starts again within a few seconds as well.
  • Versions you choose. Obsidian and both plugins update with the image, never behind your back. The in-app updater is off, and a plugin is only ever replaced by a newer version.
  • Just Obsidian. It opens maximized in the browser tab, with no panels, menus or launchers around it.
  • Nothing lost on updates. Settings live in /config, your vault in /config/vault or wherever you map it.

4. Getting started⁠

On Unraid, install Obsidian from Community Applications⁠. Anywhere else, one container is enough:

docker run -d --name obsidian -p 3001:3001 -p 27123:27123 -p 27124:27124 \
  --shm-size=1gb --memory=2g --cpus=2 \
  -e PUID=99 -e PGID=100 \
  -v /path/to/config:/config \
  junkerderprovinz/obsidian:latest

Then open https://<server>:3001 and accept the self-signed certificate once. On the first start Obsidian opens a new vault at /config/vault. To keep it on a share instead, map that share to /config/vault before the first start.

Obsidian asks once whether you trust the vault's plugins. Click Trust author and enable plugins, otherwise the REST API and LiveSync stay off.

Note

The WebUI has no login by default, for use on a trusted LAN. Set `CUSTOM_USER` and `PASSWORD` to turn on the built-in login, and never expose the WebUI or the REST API ports to the internet without a VPN or an authenticating reverse proxy in front.

The template starts the container with 2 GB of memory and two CPU cores, which is plenty for a vault of a few thousand notes. Raise --memory in Extra Parameters for a very large vault or many plugins.

⁠Other Docker hosts

compose.yaml⁠ runs Obsidian on any Linux server with Docker. Put it in a folder of its own, point the folders under volumes at your files and start it with docker compose up -d. The folders are created next to the file.

⁠Proxmox VE

Proxmox VE 9.1 and newer turn the container image into a container of its own. Without the Docker layer, Obsidian needs less memory and disk, and Proxmox backs it up together with its container. Its data stays in a folder under /srv/obsidian on the host. Proxmox still calls this a technology preview.

bash <(curl -fsSL https://raw.githubusercontent.com/junkerderprovinz/proxmox-apps/main/image.sh) install obsidian

To update, run the same line with update in place of install. It replaces the container and keeps the folder and the address.

Docker works just as well, nothing is wrong with it. Create a container with Docker using the Community Scripts and start the compose file in it, as under Other Docker hosts⁠:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/docker.sh)"

For a virtual machine instead, take vm/docker-vm.sh from the same place.

⁠Synology

In Container Manager (DSM 7.2 or newer), open Project and click Create. Pick a folder for Obsidian and upload compose.yaml⁠. Container Manager does not create missing folders, so create the ones the file names under volumes in File Station first.

⁠QNAP

In Container Station, open Applications and click Create. Paste compose.yaml⁠ and point the folders under volumes at a share, for example /share/Container/obsidian.

⁠UGREEN

In the Docker app of UGOS Pro, open Project and click Create. Pick a folder for Obsidian and paste compose.yaml⁠.

On its first start the container takes over the folders under volumes. Set PUID and PGID to your own user's IDs so the files stay yours and you can still open them over the network. id over SSH shows them, and the first user on a Synology is usually 1026 in group 100.

The Synology logo is a trademark of Synology Inc. and the QNAP logo a trademark of QNAP Systems, Inc., both registered in Taiwan and other regions.


5. LiveSync and the REST API⁠

Self-hosted LiveSync⁠ keeps the vault in step with your other devices through your own CouchDB. Set these in the template before the first start:

VariableWhat goes in
LIVESYNC_COUCHDB_URLThe address of your CouchDB, such as https://couchdb.example.com or http://192.168.1.20:5984
LIVESYNC_COUCHDB_DATABASEThe database the vault syncs to, obsidian by default
LIVESYNC_COUCHDB_USER and LIVESYNC_COUCHDB_PASSWORDA CouchDB user with access to that database
LIVESYNC_PASSPHRASEThe end-to-end encryption passphrase. Use the same one as on your other devices, or leave it empty for no encryption

The container writes these into the vault's LiveSync settings once, when the vault has none yet, and turns LiveSync on with live sync and sync on start. A vault that already syncs keeps its own settings, whatever the template says. Everything after that, such as the device name or the sync mode, is set in LiveSync's own settings tab.

Local REST API with MCP⁠ is on in a new vault, listening on both ports. It makes up its own API key on the first start, which you find in its settings tab. To set the key yourself, put it in REST_API_KEY; the container writes it into the vault on every start, so the template is the one place to change it. MCP clients connect to http://<server>:27123/mcp/ with the key as a bearer token.

Both plugins come with the image at a fixed version. The container installs them, and replaces an installed copy only when the image brings a newer version, so a plugin you updated yourself is never pushed back.


6. Moving over from linuxserver/obsidian⁠

The appdata folder of linuxserver/obsidian works as it is. Stop the old container, point this one at the same folder as /config, with the same PUID, PGID and any vault mapping you had, and start it. Obsidian opens the vault it had open before, with its plugins, settings and REST API key. LiveSync keeps its own settings and is not set up again.

Two things change: Obsidian does not update itself here, the version comes with the image, and the Chromium and xterm entries in the old desktop menu have nothing behind them any more, because this image carries neither.


7. How AI is used here⁠

One knight builds this, and AI is one of the tools I work with, the same way I work with an editor or a compiler. It helps me write code and documentation and it checks my work, and that saves me a good many evenings. It does not make the decisions, though. I read and understand everything before it ships, and if something here breaks, that is on me and not on the tool.

You do not have to take my word for it. The code is open and every release note is written by hand. The issue tracker shows how problems actually get handled, including the ones I got wrong the first time. If you find something that is not right, open an issue and I will look at it.


Questions, bugs, ideas or feature requests? Please open a GitHub issue⁠. A question about Obsidian itself is best asked in the Obsidian forum⁠.

Obsidian⁠ is made by Dynalist Inc., and this project is not affiliated with or endorsed by it. The Obsidian name, logo and app icon are trademarks of their owner and are used here only to name the application this image packages. The packaging here is AGPL-3.0; see LICENSE⁠ and NOTICE⁠ for the bundled software.

Tag summary
Recent tags
Content type
Image
Digest
sha256:0a65cecd8…
Size
1012.6 MB
Last updated
3 days ago
docker pull junkerderprovinz/obsidian:latest