← All guides
Trilium Notes
A hierarchical, note-taking application built for building a large personal knowledge base, with scripting, encryption, and a server mode for syncing across devices.
This guide is synthesized from Trilium Notes's own official documentation, linked above — always cross-check exact package/version names there before running these commands on a production server, since distro and project versions move over time.
1Download the official compose file
wget https://raw.githubusercontent.com/TriliumNext/Trilium/master/docker-compose.yml2Start the server
docker compose up -dData is stored at ~/trilium-data by default and the app listens on port 8080.
3Docker CLI alternative
You can run it directly instead of using Compose — pin an explicit version tag rather than :latest, since latest can auto-upgrade across minor versions and break sync.
docker run -d -p 0.0.0.0:8080:8080 -v ~/trilium-data:/home/node/trilium-data triliumnext/trilium:v0.91.64Finish setup
The browser UI walks you through initial configuration on first launch.
open http://127.0.0.1:8080