The Trilium Project

Why using Trilium?

When you are learning something new or have a lot of information to remember, taking notes can be a very helpful way to organize and retain it.

Trilium will help us with it.

It can be easier to comprehend and remember information if you actively engage with it while taking notes and applying critical thinking to it.

The benefits of note taking - it can help you stay focused and attentive during lectures or meetings and can be a useful tool for organizing your thoughts and ideas.

SelfHosting Trilium

We will be using the Trilium image on DockerHub.

Trilium - Docker Compose

The configuration file that we will use today to SelfHost Trilium with Docker is:

#version: "3.3"
services:
  trilium:
    image: zadam/trilium:latest
    restart: unless-stopped
    ports:
      - "9999:8080"
    volumes:
      - trilium-data:/home/node/trilium-data

volumes:
  trilium-data:
  • You can use Portainer to copy paste this configuration and deploy Trilium Container
  • Or if you are confortable, you can use the terminal approach:

Providing that the previous steps are clear, we can jump to our terminal and use:

sudo nano docker-compose.yml

This will open a text editor, where we can paste the following configuration file:

To save, use CTRL+O, then CTRL+X to exit.

Then just deploy the service with:

sudo docker-compose up -d

You are ready to take notes with Trilium, the service will be running by default at localhost:8080 or localhost:9999 if you use the configuration file as it is provided.

If you have deployed it in one device at home, you can use it from any other connected at the same router, just use the internal IP of the device in which you made the deployment.

You can check that in Linux with:

hostname -I
#ifconfig

You can also install Trilium with Flatpak:

flatpak install flathub com.github.zadam.trilium

FAQ

How to Deploy Nginx Proxy Manager

If you are interested in deploying a separated NGINX instance with Docker, I already created a guide for that here.

Other F/OSS for Note Taking