Notesnook self-hosted sync server: setup, limits and backups
You can run your own Notesnook sync server with the official Docker Compose stack from the streetwriters/notesnook-sync-server repository, and the Notesnook apps can be pointed at it. Be clear about its status first: the README says self-hosting “is now possible, but without support,” the self-hosting docs are still an unticked item on its to-do list, and the server images are tagged as v1.0 betas. Because Notesnook already encrypts everything on your device, the free hosted service is the better choice for most people; self-host only if you want the data on hardware you control and can run a small multi-container stack yourself.
At a glance
| Notesnook self-hosted | |
|---|---|
| Official status | “Possible, but without support”; docs “will be provided at a later date” |
| Server licence | GNU AGPL v3 or later |
| App licence | GNU GPL v3 or later |
| Packaging | Docker Compose: MongoDB, Silo (S3-compatible storage), identity, sync, SSE and Monograph servers |
| Public hostnames | About five: sync API, auth, eventing (SSE), attachments, Monograph |
| Client support | Server URL settings in the apps from v3.0.18; you must be logged out to change them |
| Help center coverage | None for the sync server (only the Inbox API relay has a self-hosting page) |
Status, images and settings from the official repositories and help center, checked 2026-12-05.
What “without support” means in practice
The repository has the code, a compose file and a commented .env, but there is no installation guide on notesnook.com. The help center covers self-hosting only for the Inbox API relay, not the sync server. Do not expect Notesnook’s support team to debug your instance, and expect the compose file to change between versions: at the time of checking, the attachment store had already moved to Silo, while the .env keeps the old MINIO_* variable names “for Silo compatibility.”
On Docker Hub, the streetwriters/notesnook-sync image’s newest tags were latest and v1.0-beta.52, both updated November 9, 2026, so the project is active but still labels its server as beta.
Two things are not documented, so this guide does not guess at them: how paid-plan limits (storage, file size) behave on a self-hosted instance, and which client platforms have been tested against custom servers. The stack includes no billing or subscription service.
When the hosted service is the better choice
Notesnook’s help center says sync is free on every plan with unlimited devices, and that note content, titles, notebooks, tags, colors, reminders and attachments are encrypted on your device before they leave it. The server “receives ciphertext and hands the same ciphertext to your other devices.” Self-hosting therefore does not make your notes more private in the cryptographic sense. What it changes is who runs the server, where the encrypted blobs and account records sit, and whether you depend on Notesnook’s uptime.
Stay on the hosted service if:
- you want official support, or you would not notice a broken update for days;
- you cannot keep the server patched and backed up;
- you mainly want privacy, which the end-to-end encryption already gives you.
If you want plain Markdown files you sync yourself, a different app may fit better; see self-hosting Obsidian sync. For general file sync, compare self-hosted cloud storage. If you are new to running servers, read what self-hosting involves first.
What the stack runs
The root docker-compose.yml defines these services:
| Service | Image (as in the repo) | Host port | Role |
|---|---|---|---|
validate |
vandot/alpine-bash |
none | Checks required .env variables, warns if SMTP is missing |
notesnook-db |
mongo:7.0.12 |
none | MongoDB, run as replica set rs0 |
notesnook-s3 |
pgsty/silo:RELEASE.2026-09-16T00-00-00Z |
9000 | Silo, S3-compatible storage for attachments |
setup-s3 |
pgsty/mc:RELEASE.2026-09-13T00-00-00Z |
none | Creates the attachments bucket |
identity-server |
streetwriters/identity:latest |
8264 | Accounts and login |
notesnook-server |
streetwriters/notesnook-sync:latest |
5264 | Sync API |
sse-server |
streetwriters/sse:latest |
7264 | Real-time events |
monograph-server |
streetwriters/monograph:latest |
6264 | Published notes (Monographs) |
autoheal |
willfarrell/autoheal:latest |
none | Restarts unhealthy containers |
The extras profile adds themes-server (port 9200), cors-proxy (3001) and inbox-api (5181). The repo also ships examples for running against an external MongoDB, an external Silo, or Garage storage.
Plan for a Linux host with Docker and the Compose plugin, a domain whose DNS you control, and a reverse proxy for HTTPS. The repo states no minimum hardware. A VPS is the simpler place to start because the apps on your phone need to reach it from anywhere; see choosing a VPS for self-hosting.
Hostnames and TLS
The .env asks for public URLs, each with an example subdomain. Give each one its own hostname behind a TLS-terminating reverse proxy:
| Variable | Example from .env |
Proxies to |
|---|---|---|
NOTESNOOK_API_PUBLIC_URL |
api.yourdomain.com | notesnook-server, port 5264 |
AUTH_SERVER_PUBLIC_URL |
auth.yourdomain.com | identity-server, port 8264 |
ATTACHMENTS_SERVER_PUBLIC_URL |
attachments.yourdomain.com | notesnook-s3 (Silo), port 9000 |
MONOGRAPH_PUBLIC_URL |
monogr.yourdomain.com | monograph-server, port 6264 |
NOTESNOOK_APP_PUBLIC_URL |
app.notesnook.com (default) | not part of the stack |
The apps also ask for an eventing (SSE) server URL, and the .env has no variable for it, so add a fifth hostname such as events.example.org for the sse-server on port 7264. The app URL is used by the backend for redirect links after email confirmation; the stack does not include the web app, and the default points at Notesnook’s own.
The repo does not ship a reverse proxy configuration, so use your proxy’s own documentation and get trusted certificates, for example from Let’s Encrypt. The .env examples all use https:// URLs.
Install
These steps follow the README. In an empty directory, download the compose file and .env:
wget https://raw.githubusercontent.com/streetwriters/notesnook-sync-server/master/docker-compose.yml
wget https://raw.githubusercontent.com/streetwriters/notesnook-sync-server/master/.env
Edit .env. The README says to set at least NOTESNOOK_API_SECRET, but the validate service refuses to start the stack unless all required values are set. The required lines, with your own hostnames:
INSTANCE_NAME=self-hosted-notesnook-instance
NOTESNOOK_API_SECRET=CHANGE_ME
DISABLE_SIGNUPS=false
NOTESNOOK_APP_PUBLIC_URL=https://app.notesnook.com
MONOGRAPH_PUBLIC_URL=https://monogr.example.org
AUTH_SERVER_PUBLIC_URL=https://auth.example.org
ATTACHMENTS_SERVER_PUBLIC_URL=https://attachments.example.org
NOTESNOOK_API_PUBLIC_URL=https://api.example.org
NOTESNOOK_API_SECRET signs and validates auth tokens and must be random, “preferably >32 characters”; generate it with a password manager. Also set these, which the file marks optional:
MINIO_ROOT_USERandMINIO_ROOT_PASSWORD: the Silo root account. If you leave them empty, the compose file falls back tominioadminfor both, on a port that has to be reachable from the internet. Set your own (more than 3 and 8 characters respectively).SMTP_HOST,SMTP_PORT,SMTP_USERNAME,SMTP_PASSWORD: without them, the file warns, email 2FA codes and password-reset emails will not be sent, and new users must switch 2FA to an authenticator app under “Settings > Auth > Change 2FA method”.NOTESNOOK_CORS_ORIGINSandKNOWN_PROXIES: allowed browser origins and your reverse proxy’s address.
Then start the stack:
docker compose up
The README runs it in the foreground; once it works, the repo’s examples use up -d to run it detached. Create your accounts, then set DISABLE_SIGNUPS=true, which the .env describes as the switch for an instance “exposed to the Internet”, and restart.
Keep internal ports and consoles off the open internet
The compose file publishes 5264, 6264, 7264, 8264 and 9000 on all interfaces. Only your reverse proxy should reach them. Docker’s documentation warns that published ports bypass ufw on Ubuntu, so a ufw rule alone will not hide them. Add rules to the DOCKER-USER iptables chain, as Docker’s iptables page describes, or keep the host behind a cloud firewall that only allows 80 and 443 (and SSH from your own address).
Other points from the compose file:
- MongoDB publishes no port. Keep it that way.
- Silo is started with its web console enabled on port 9090 inside the container. That port is not published; do not publish it. If you need the console, reach it through an SSH tunnel or VPN.
autohealmounts the Docker socket, which gives it control of Docker on the host.- The optional
cors-proxyfetches arbitrary URLs. The compose file puts it on its own network and suggests blocking private address ranges for its subnet in the host firewall.
Point the apps at your server
The help center does not document this, so there is no official step-by-step wording to quote. What the README and the client source show:
- Server URL settings exist in the Notesnook client apps starting from v3.0.18.
- You must log out before you can change them.
- The settings ask for four URLs: sync server, authentication server, SSE (eventing) server and monograph server.
- A connection test calls each server’s version endpoint and rejects a wrong or incompatible server; saving reloads the app.
Then create an account or log in as usual. The help center notes that if you have pointed the app at your own servers, connection failures show the raw network error rather than Notesnook’s friendly message.
Updates
The Notesnook images use the latest tag, while MongoDB, Silo and the Silo client are pinned to specific versions. Before an update, back up, re-download docker-compose.yml and compare .env with the repository version, since services and variables have changed before. Then pull and recreate:
docker compose pull
docker compose up -d
The apps’ connection test rejects a server whose version they consider incompatible, so an outdated server may stop being accepted by updated apps. Do not let updates lapse.
Backups
Your data lives in named Docker volumes:
dbdata: MongoDB, holding theidentityandnotesnookdatabases (accounts and encrypted sync data).s3data: Silo, holding the encrypted attachments.themesdata: only if you run theextrasprofile.
Also keep your .env, which holds the API secret and storage credentials. The repo gives no backup procedure. A consistent approach is to stop the stack with docker compose down, archive the volumes as Docker’s volume backup instructions show, start it again, and copy the archives to another machine.
Keep a second layer in the app itself: Notesnook’s backups create an encrypted .nnbackupz file, and the desktop and mobile apps can make them automatically, daily, weekly or monthly (the web app sets backup reminders instead). Store your account password and recovery key somewhere safe. Notesnook says that without them nobody can decrypt your data, and on your own server nobody else can help either.
For more on running services yourself, browse the hosting section, or the Bitwarden self-hosting guide for a similar stack with an officially documented install.
Frequently asked questions
- Is Notesnook self-hosting officially supported?
- No. The sync server README says self-hosting is now possible but without support, and that documentation will be provided at a later date. The server images on Docker Hub are tagged as v1.0 betas, and the Notesnook help center has no guide for running the sync server.
- Do I need to self-host Notesnook to keep my notes private?
- Not for confidentiality. Notesnook states that notes, titles, notebooks, tags, reminders and attachments are encrypted on your device before they are sent, and that the server only stores ciphertext. Self-hosting changes who runs the server and where the encrypted data lives, not whether it is encrypted.
- Which apps can connect to a self-hosted Notesnook server?
- The sync server README says settings to change server URLs were added to the Notesnook client apps starting from version 3.0.18. You must be logged out to change them, and the app asks for four URLs: sync, authentication, eventing (SSE) and monograph servers.
- Does a self-hosted Notesnook server include attachments and Monographs?
- Yes. The official Docker Compose stack includes Silo, an S3-compatible store for encrypted attachments, and a Monograph server for published notes. A themes server, a CORS proxy and the Inbox API are optional extras.
- What do I need to back up?
- The Docker volumes that hold the MongoDB data and the Silo attachment storage, plus your .env file. Keep encrypted backups from the Notesnook app itself as a second, independent copy.
Sources, checked December 5, 2026
- Notesnook Sync Server README (streetwriters/notesnook-sync-server)
- Notesnook Sync Server docker-compose.yml
- Notesnook Sync Server .env (configuration reference)
- Notesnook Sync Server Docker Compose examples (external MongoDB, Silo, Garage)
- Notesnook Sync Server LICENSE (GNU AGPL v3)
- Docker Hub: streetwriters/notesnook-sync tags
- Notesnook client apps README and licence (streetwriters/notesnook)
- Notesnook web client: servers configuration settings (source)
- Notesnook Help: How does sync work in Notesnook?
- Notesnook Help: How is my data encrypted?
- Notesnook Help: Troubleshooting sync
- Notesnook Help: Backup and restore
- Notesnook Help: Plans and limits
- Notesnook Help: Self-hosting the Inbox API
- Docker Docs: Packet filtering and firewalls (Docker and ufw)
- Docker Docs: Docker with iptables (DOCKER-USER chain)
- Docker Docs: Volumes (back up, restore, or migrate data volumes)
- Docker Docs: docker compose pull