Portainer Templates logo

Portainer Templates

NoteDiscovery NoteDiscovery

Stack

ProductivityDocuments

Markdown notes app that keeps everything as plain files in folders. Full-text search, wiki-style links with backlinks and a graph view, tags, templates, drawings, Mermaid and maths, themes, and read-only share links for single notes. Source: https://github.com/gamosoft/NoteDiscovery

Image details

Architecture: amd64, arm64
Image size: 61 MB
User: gamosoft

Source details

Stars: 3k
Forks: 251
Language: JavaScript
License: MIT
Updated: 12 hours ago

Configuration

Type
Compose
Platform
linux
Image
ghcr.io/gamosoft/notediscovery:latest
Ports
${NOTEDISCOVERY_PORT:-8020}:8000
Volumes
/app/data : notediscovery-data
Env vars
AUTHENTICATION_ENABLED=trueAUTHENTICATION_PASSWORD=${NOTEDISCOVERY_PASSWORD:?Set a password}AUTHENTICATION_SECRET_KEY=${NOTEDISCOVERY_SECRET_KEY:?Set a secret key}NOTEDISCOVERY_PASSWORD=''NOTEDISCOVERY_SECRET_KEY=''NOTEDISCOVERY_PORT=8020
Restart
unless-stopped
Source

Notes

Set the password and the session secret before you deploy, since the stack won't start without both (openssl rand -hex 32 makes a good secret). Then open http://<your-host>:8020 (or whichever port you picked) and log in with the password. There's one password and no user accounts, so anyone you give it to sees all the same notes. Notes are plain markdown files in the notediscovery-data volume, with uploads in an _attachments folder beside each note and note templates in _templates. Settings --> Your notes --> Download gets the lot as a zip. The share button on a note makes a link that lets anyone who has it read that one note without logging in. To change the password, change it on the form and update the stack. Put it behind HTTPS before it goes anywhere near the internet, since the password is sent as plain text otherwise. Docs: github.com/gamosoft/NoteDiscovery

Standalone Install

Select an install method, to see config/commands for deploying NoteDiscovery

Installation method

Install on Portainer

Import all app templates into your Portainer instance, for easy 1-click deploys

  1. Ensure both Docker and Portainer are installed, and up-to-date
  2. Log into your Portainer web UI
  3. Under Settings → App Templates, paste the below URL
  4. Head to Home → App Templates, and the list of apps will show up
  5. Select NoteDiscovery, fill in any config options, and hit Deploy

Template Import URL

https://raw.githubusercontent.com/Lissy93/portainer-templates/main/templates.json
Show Me demo
Original stackfile

The compose file this template deploys, straight from its repo:

services:
  notediscovery:
    image: ghcr.io/gamosoft/notediscovery:latest
    restart: unless-stopped
    ports:
      - "${NOTEDISCOVERY_PORT:-8020}:8000"
    environment:
      AUTHENTICATION_ENABLED: "true"
      AUTHENTICATION_PASSWORD: ${NOTEDISCOVERY_PASSWORD:?Set a password}
      AUTHENTICATION_SECRET_KEY: ${NOTEDISCOVERY_SECRET_KEY:?Set a secret key}
    volumes:
      - notediscovery-data:/app/data

volumes:
  notediscovery-data:

Or deploy it directly from the source:

git clone https://github.com/NotAFlightRisk/portainer-templates-extras
cd portainer-templates-extras
docker compose -f apps/notediscovery/compose.yml up -d

More install options in our documentation, or see gamosoft/NoteDiscovery for app-specific guidance.

GitHub Stars Build Latest Version GHCR Pulls License


NoteDiscovery


NoteDiscovery


Your Self-Hosted Knowledge Base

What is NoteDiscovery?

NoteDiscovery is a lightweight, self-hosted note-taking application that puts you in complete control of your knowledge base. Write, organize, and discover your notes with a beautiful, modern interface—all running on your own server.

Editor and sidebar Full-text search Graph view of linked notes

Write · Find · Discover

🎯 Who is it for?

  • Privacy-conscious users who want complete control over their data
  • Developers who prefer markdown and local file storage
  • Knowledge workers building a personal wiki or second brain
  • Teams looking for a self-hosted alternative to commercial apps
  • Anyone who values simplicity, speed, and ownership

Official Website    Try Live Demo

Run on PikaPods    Buy Me a Coffee at ko-fi.com


✨ Why NoteDiscovery?

vs. Commercial Apps (Notion, Evernote, Obsidian Sync)

FeatureNoteDiscoveryCommercial Apps
Cost100% Free$xxx/month/year
PrivacyYour server, your dataTheir servers, their terms
SpeedLightning fastDepends on internet
OfflineAlways worksLimited or requires sync
CustomizationFull controlLimited options
No Lock-inPlain markdown filesProprietary formats

Key Benefits

  • 🔒 Total Privacy - Your notes never leave your server
  • 📴 No CDN Required - The app and its shared links serve every browser library locally, so they work on air-gapped networks — see documentation/THIRDPARTY.md
  • 🔐 Optional Authentication - Simple password protection for self-hosted deployments
  • 💰 Zero Cost - No subscriptions, no hidden fees
  • 🚀 Fast & Lightweight - Instant search and navigation
  • 🎨 Beautiful Themes - Multiple themes, easy to customize
  • 🔌 Extensible - Plugin system for custom features
  • 📱 Responsive - Works on desktop, tablet, and mobile
  • 📂 Simple Storage - Plain markdown files in folders
  • 🧮 Math Support - LaTeX/MathJax for beautiful equations
  • 📄 HTML Export & Print - Export notes as standalone HTML or print
  • 🕸️ Graph View - Interactive visualization of connected notes
  • ✏️ Drawing editor - In-app sketches as drawing-*.png next to your notes — see documentation/DRAWING.md
  • ⭐ Favorites - Star your most-used notes for instant access
  • 📑 Outline Panel - Navigate headings with click-to-jump TOC
  • 🤖 AI Assistant Ready - MCP integration for Claude, Cursor & more

🤖 AI-Powered Note Management

MCP Compatible Works with Claude Works with Cursor


NoteDiscovery includes a built-in Model Context Protocol (MCP) server, letting AI assistants directly interact with your notes:
What AI Can DoExample
🔍 Search & Discover"Find all my notes about Docker deployment"
📝 Create & Edit"Create a meeting notes template for tomorrow"
📁 Organize"Move all project notes to the archive folder"
🏷️ Tag & Categorize"List all notes tagged with #urgent"
📊 Explore Connections"Show me the knowledge graph of my notes"
✍️ Append Ideas"Add this thought to my daily journal"

One-line setup for Cursor, Claude Desktop, and other MCP-compatible tools:
{
  "mcpServers": {
    "notediscovery": {
      "command": "docker",
      "args": ["run", "--rm", "-i", "-e", "NOTEDISCOVERY_URL=http://host.docker.internal:8000", "ghcr.io/gamosoft/notediscovery:latest", "python", "-m", "mcp_server"]
    }
  }
}

🌐 Prefer a URL? Set MCP_ENABLED=true and point your client at http://your-server:8000/mcp (Streamable HTTP).
💡 See MCP.md for complete setup instructions and all available tools.
🧪
Want a fully local setup with a bundled LLM? OLLAMA-STACK.md spins up NoteDiscovery + Ollama + Open WebUI with one command.

📺 Watch the tour

<img src="https://img.youtube.com/vi/qur5uemWeJA/maxresdefault.jpg" alt="Watch a short tour" width="720">

▶ Small walkthrough — sharing, favorites, search, backlinks, and more

🚀 Quick Start

Quick Setup

Linux/macOS:
mkdir -p notediscovery/data && cd notediscovery
docker run -d --name notediscovery -p 8000:8000 \
  -v $(pwd)/data:/app/data \
  ghcr.io/gamosoft/notediscovery:latest

Windows (PowerShell):
mkdir notediscovery\data; cd notediscovery
docker run -d --name notediscovery -p 8000:8000 `
  -v ${PWD}/data:/app/data `
  ghcr.io/gamosoft/notediscovery:latest

Open http://localhost:8000 — done! 🎉
💡 Your notes are saved in ./data/. Themes, plugins, locales and default configuration values are included in the image.

Using Docker Compose

Two docker-compose files are provided:
FileUse Case
docker-compose.ghcr.ymlRecommended - Uses pre-built image from GitHub Container Registry
docker-compose.ymlFor development - Builds from local source
docker-compose.ollama-stack.ymlBundled local AI stack (NoteDiscovery + Ollama + Open WebUI) — see OLLAMA-STACK.md

Option 1: Pre-built image (fastest)
Linux/macOS:
mkdir -p notediscovery/data && cd notediscovery
curl -O https://raw.githubusercontent.com/gamosoft/notediscovery/main/docker-compose.ghcr.yml
docker-compose -f docker-compose.ghcr.yml up -d

Windows (PowerShell):
mkdir notediscovery\data; cd notediscovery
Invoke-WebRequest -Uri https://raw.githubusercontent.com/gamosoft/notediscovery/main/docker-compose.ghcr.yml -OutFile docker-compose.ghcr.yml
docker-compose -f docker-compose.ghcr.yml up -d

Option 2: Build from source (for development)
git clone https://github.com/gamosoft/notediscovery.git
cd notediscovery
docker-compose up -d

See Advanced Docker Setup for volume details.

Running Locally (Without Docker)

For development or if you prefer running directly:
# Clone the repository
git clone https://github.com/gamosoft/notediscovery.git
cd notediscovery

# Install dependencies
pip install -r requirements.txt

# Run the application
python run.py

# Access at http://localhost:8000

Requirements:
  • Python 3.8 or higher
  • pip (Python package manager)

Using Virtual Environments (Recommended for Arch/Fedora/Ubuntu 23.04+)

Modern Linux distributions enforce PEP 668, which prevents system-wide pip installs. Use a virtual environment instead:
# Clone the repository
git clone https://github.com/gamosoft/notediscovery.git
cd notediscovery

# Create a virtual environment
python -m venv venv

# Activate it (choose your shell):
source venv/bin/activate        # Bash/Zsh (most Linux distros)
source venv/bin/activate.fish   # Fish (CachyOS, etc.)
source venv/bin/activate.csh    # Csh/Tcsh
.\venv\Scripts\activate         # Windows PowerShell

# Install dependencies and run
pip install -r requirements.txt
python run.py

⚠️ Warning
You'll need to activate the virtual environment (source venv/bin/activate) each time you open a new terminal before running the app

Advanced Docker Setup

The image includes bundled config, themes, plugins, and locales. To customize, you must:
  1. Map the volume in your docker-compose or docker run command
  2. Provide content - the file/folder must exist with valid content (empty = app might break!)

VolumePurposeBundled?
data/Your notes❌ You must create
config.yamlApp settings✅ Yes
themes/Custom themes✅ Yes
plugins/Custom plugins✅ Yes
locales/Translations✅ Yes

Dashboard Integration

NoteDiscovery Icon
An official icon for NoteDiscovery is now available on Dashboard Icons!
Use it in your self-hosted dashboards like Homepage, Homarr, Dashy, Heimdall, etc...

📚 Documentation

Want to learn more?
  • 🎨 THEMES.md - Theme customization and creating custom themes
  • ✨ FEATURES.md - Complete feature list and keyboard shortcuts
  • ✏️ DRAWING.md - Built-in drawing editor (drawing-*.png), save behavior, and API notes
  • 🏷️ TAGS.md - Organize notes with tags and combined filtering
  • 📋 TEMPLATES.md - Create notes from reusable templates with dynamic placeholders
  • 🧮 MATHJAX.md - LaTeX/Math notation examples and syntax reference
  • 📊 MERMAID.md - Diagram creation with Mermaid (flowcharts, sequence diagrams, and more)
  • 🔌 PLUGINS.md - Plugin system and available plugins
  • 🧩 plugins/contrib/ - Optional community plugins and how to install them
  • 🌐 API.md - REST API documentation and examples
  • 🤖 MCP.md - AI assistant integration (Claude, Cursor, and more)
  • 🔐 AUTHENTICATION.md - Enable password protection for your instance
  • 🔧 ENVIRONMENTVARIABLES.md - Configure settings via environment variables
  • 📦 THIRDPARTY.md - Locally hosted browser libraries, licences, and how to update them

🌍 Multiple Languages

NoteDiscovery supports multiple interface languages via JSON locale files in locales/. Open Settings (gear icon) → Language to choose one; the list reflects whatever locales are installed (bundled files, mounts, or your own additions).
To add your own language: See the Contributing Guidelines for instructions on creating translation files.
Docker users: Mount your custom locales folder to add or override translations:
volumes:
  - ./locales:/app/locales  # Custom translations

💡 Pro Tip: If you clone this repository, you can mount the documentation/ folder to view these docs inside the app:
# In your docker-compose.yml
volumes:
  - ./data:/app/data              # Your personal notes
  - ./documentation:/app/data/docs:ro  # Mount docs subfolder inside the data folder (read-only)

Then access them at http://localhost:8000 - the docs will appear as a docs/ folder in the file browser!

🤝 Contributing

Before submitting a pull request, especially for major changes, please:
  • Read our Contributing Guidelines
  • Open an issue first to discuss major features or significant changes
  • Ensure your code follows the project's style and philosophy

🔒 Security Considerations

NoteDiscovery is designed for self-hosted, private use. Please keep these security considerations in mind:

Network Security

  • ⚠️ Do NOT expose directly to the internet without additional security measures
  • Run behind a reverse proxy (nginx, Caddy) with HTTPS for production use
  • Keep it on your local network or use a VPN for remote access
  • By default, the app listens on 0.0.0.0:8000 (all network interfaces)

Authentication

  • Password protection is DISABLED by default (default password: admin)
  • ⚠️ ENABLE AUTHENTICATION AND CHANGE THE DEFAULT PASSWORD if exposing to a network!
  • See AUTHENTICATION.md for complete setup instructions
  • To disable auth, set authentication.enabled: false in config.yaml
  • Perfect for single-user or small team deployments
  • For multi-user setups, consider a reverse proxy with OAuth/SSO

Data Privacy

  • Your notes are stored as plain text markdown files in the data/ folder
  • No data is sent to external services
  • Regular backups are recommended

Best Practices

  • Run on localhost or a private network only
  • Use Docker for isolation and easier security management
  • Keep your system and dependencies updated
  • Review and audit any plugins you install
  • Set appropriate file permissions on the data/ directory

TL;DR: Perfect for personal use on your local machine or home network. Enable built-in password protection if needed, or use a reverse proxy with authentication if exposing to wider networks.

📄 License

MIT License - Free to use, modify, and distribute.
Made with ❤️ for the self-hosting community

Check the logs first

Nine times out of ten the logs tell you exactly what went wrong.

  • In Portainer, go to Containers, click the container, then Logs. Or run docker logs <container>
  • Exit codes help too: 137 means killed, usually out of memory. 126 or 127 means the command inside the image is broken.

Image won't pull

Test the pull directly on the host: docker pull ghcr.io/gamosoft/notediscovery:latest

  • "manifest unknown" means the tag no longer exists. This template uses latest, so try pinning a specific version instead.
  • "toomanyrequests" is the Docker Hub rate limit. Log in with docker login to raise it.
  • "no space left on device" means a full disk. Reclaim space with docker system prune

"exec format error"

This means the image was built for a different CPU architecture than your server.

  • This image supports: amd64, arm64
  • Check yours with uname -m: x86_64 is amd64, aarch64 is arm64. Raspberry Pi and other ARM boards are the usual culprits.

Container keeps restarting

The unless-stopped restart policy relaunches the app after every crash, so the real error can scroll past.

  • Check the logs right after a restart, the last few lines before it died are the useful ones.
  • Get the exit code with docker inspect <container> --format '{{.State.ExitCode}}'
  • Still stuck? Redeploy once with the restart policy set to no so the failure stays visible.

Required settings are blank

NOTEDISCOVERY_PASSWORD, NOTEDISCOVERY_SECRET_KEY have no default value, and notediscovery may crash or misbehave if left empty.

  • Fill them in on the deploy screen before hitting deploy.

Stack won't deploy

Compose stacks fail fast on small mistakes, and Portainer shows the reason just above the editor.

  • YAML only accepts spaces for indentation, a single tab breaks the whole file.

Raise an issue

Found something which isn't working as it should? Here's how to report it.

A Compose stack

NoteDiscovery is a Compose stack, a set of containers defined in one file and brought up together by Portainer, then started and stopped as a single app.

The app image

An image is the app packed up ready to go, everything NoteDiscovery needs bundled into one download. This template pulls ghcr.io/gamosoft/notediscovery:latest, which Docker fetches once (about 61 MB) and then starts your own copy from.

Where the image comes from

Docker pulls its images from registries, public libraries of ready-built apps. NoteDiscovery's comes from the GitHub Container Registry, published by gamosoft.

Version tags

The bit after the colon in the image name is the version tag. Here it's latest, which always points at the newest build, so a redeploy can bump you to a newer release without you asking. Pin a specific tag if you would rather stay on one version.

Which machines it runs on

Every image is built for particular CPU types. This one ships for amd64, arm64, so it runs on both regular x86 servers and ARM boards like a Raspberry Pi.

Volumes

A volume is where NoteDiscovery keeps its files so they survive an update or a restart. Without one, anything it saves would sit inside the container and vanish the moment it's recreated. This template mounts:

  • /app/data kept in the notediscovery-data volume Docker manages

Environment variables

Environment variables are the settings you hand over when you deploy, things like a password or a timezone. NoteDiscovery takes 6 of them, and 4 need a value before it'll start properly:

  • AUTHENTICATION_ENABLED, defaults to true
  • AUTHENTICATION_PASSWORD, needs a value
  • AUTHENTICATION_SECRET_KEY, needs a value
  • NOTEDISCOVERY_PASSWORD, needs a value. What you'll log in with. Anything long and hard to guess, or generate one with: openssl rand -hex 16
  • NOTEDISCOVERY_SECRET_KEY, needs a value. Signs the login cookie, so keep it secret and don't change it or everyone's logged out. Generate one with: openssl rand -hex 32
  • NOTEDISCOVERY_PORT, defaults to 8020. Host port for the web UI

Restart policy

The restart policy here is unless-stopped, so Docker restarts NoteDiscovery after a crash or reboot, but leaves it off when you stop it on purpose. You can change this on the deploy screen. The choices are no (never restart), on-failure (only after a crash), unless-stopped (restart unless you stop it), and always (bring it back no matter what).

Networking

Nothing custom is set, so NoteDiscovery sits on Docker's default bridge network: its own private space that reaches the outside world only through the ports it publishes.

Container name

Once it's deployed, Portainer names the container notediscovery. That's what you'll spot in the containers list and use in commands like docker logs notediscovery.

Platform

The platform is linux, the kind of system the container is built to run on. Docker and Portainer handle this on a normal Linux server.

Open source license

NoteDiscovery is open source, released under the MIT license. In plain terms the code is out in the open, so you're free to run it and change it to fit what you need.

Portainer app templates

Zooming out, this whole page comes from a Portainer app template: a short recipe telling Portainer how to set NoteDiscovery up. Add the template list to Portainer once, then deploying NoteDiscovery is a click rather than a wall of config.