-
Packaged version for Linux
This is essentially Trilium sources + node modules + node.js runtime packaged into one 7z file.
The problem with above steps is that once you close the SSH connection or the terminal, the Trilium process is terminated. Generally, the best way to avoid that is to configure systemd to run Trilium in the background on every boot, as described in the next section. It also restarts Trilium if it stops unexpectedly.
-
Using Docker
Official docker images are published on docker hub for AMD64, ARMv7 and ARM64/v8: https://hub.docker.com/r/triliumnext/trilium/
Ensure Docker is installed on your system.
If you need help installing Docker, reference the Docker Installation Docs
By default, the container starts as root, prepares the data directory and then runs Trilium as an unprivileged user. It can also run entirely without root, as described in Running as a non-root user below.
-
On NixOS
This page describes configuring the Trilium module included in NixOS.
NixOS installation.
Add this to your configuration.nix:
Uncomment any option you would like to change.
See the NixOS options list for more options (including nginx reverse proxy configuration).
-
Manually
This page describes manually installing Trilium on your server. Note that this is a not well supported way to install Trilium, problems may appear, information laid out here is quite out of date. It is recommended to use either Docker Server Installation or Packaged server installation.
Trilium is a node.js application. Supported (tested) version of node.js is latest 14.X.X and 16.X.X. Trilium might work with older versions as well.
-
Using Kubernetes
As Trilium can be run in Docker it also can be deployed in Kubernetes. You can either use our Helm chart, a community Helm chart, or roll your own Kubernetes deployment.
The recommended way is to use a Helm chart.
By default, the Trilium container starts as root, gives the data directory to UID and GID 1000:1000 and then runs Trilium with those reduced privileges, so no init container is needed to fix the permissions.
-
Multiple server instances
Trilium does not support multiple users. In order to have two or more persons with their own set of notes, multiple server instances must be set up. It is also not possible to use multiple sync servers.
To allow multiple server instances on a single physical server:
For Packaged version for Linux or Manually, if starting the server manually just specify a different port and data directory per instance:
For a second instance: