Trilium Notes
Build your personal knowledge base with Trilium Notes
Alternative to: evernote, onenote, notion
Trilium Notes (TriliumNext) is a free and open-source, cross-platform hierarchical note-taking application focused on building large personal knowledge bases. It offers a rich WYSIWYG editor, note encryption, scripting, relation/link maps, and synchronization across devices, and can be self-hosted as a server that you access from desktop, mobile, or browser clients. TriliumNext is the actively maintained community continuation of the original Trilium project.
Trilium Notes Docker Compose example
Self-host Trilium Notes on your own server, homelab, or VPS starting from this Docker Compose example.
It runs Trilium Notes in Docker containers using the official triliumnext/trilium:latest image, with persistent volumes and automatic restarts preconfigured.
Review the environment variables and adjust them to your setup, save the file as compose.yml (or docker-compose.yml), and start the stack with docker compose up -d.
services:
trilium:
image: triliumnext/trilium:latest
restart: unless-stopped
environment:
# Directory inside the container where Trilium stores its database and data.
TRILIUM_DATA_DIR: "/home/node/trilium-data"
# Timezone used for log timestamps.
TZ: "UTC"
volumes:
- data:/home/node/trilium-data
volumes:
data: Prefer a managed setup? WinterFlow installs, configures, and updates Trilium Notes for you using this same Docker Compose configuration.