Requirements: For privacy reasons, you do not want to use shared note-taking services (e.g., Youdao Cloud Notes, Evernote, etc.). I want to privatize and build a personal online notebook. I saw Trilium as an open source project from the Internet.
Trilium Notes
Trilium Notes is a layered note-taking app that focuses on building a large personal knowledge base.
Open source address:The hyperlink login is visible.
Note: The project is in maintenance mode, refer to:The hyperlink login is visible.
Built on Docker
Docker, package management, K8S and other installation methods are officially supported, it is recommended to use Docker to build, address:The hyperlink login is visible.
First, to prevent permission denied issues, run the following command:
Otherwise, when starting the container, the following error will be reported:
Node.js v18.18.2 No USER_UID specified, leaving 1000 No USER_GID specified, leaving 1000
node:internal/fs/utils:350 throw err; ^
Error: EACCES: permission denied, mkdir '/trilium-data/log' at Object.mkdirSync (node:fs:1398:3) at Object. <anonymous> (/usr/src/app/src/services/log.js:8:8) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions.. js (node:internal/modules/cjs/loader:1310:10) at Module.load (node:internal/modules/cjs/loader:1119:32) at Module._load (node:internal/modules/cjs/loader:960:12) at Module.require (node:internal/modules/cjs/loader:1143:19) at require (node:internal/modules/cjs/helpers:119:18) at Object. <anonymous> (/usr/src/app/src/services/session_secret.js:6:13) at Module._compile (node:internal/modules/cjs/loader:1256:14) { errno: -13, syscall: 'mkdir', code: 'EACCES', path: '/trilium-data/log'
} docker-compose.yml The configuration is as follows:
The startup command is as follows:
Open it using a browserip:8085website, as shown below:
Set a password as shown below:
Log in, as shown below:
After the login is successful, as shown in the following figure:
(End) |