The Trilium Project

The LogSeq 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 - Docker container

Pre-Requisites!! Just Get Docker 馃悑馃憞

You can install it for any PC/mac/Linux at home or in any cloud provider that you wish.

It will just take few moments, this one. If you are in Linux, just

apt-get update && sudo apt-get upgrade && curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh 
#sudo apt install docker-compose -y

And install also Docker-compose with:

apt install docker-compose -y

And when the process finishes - you can use it to SelfHost other services as well.

You should see the versions with:

docker --version
docker-compose --version

#sudo systemctl status docker #and the status

We will be using the Trilium image on DockerHub.

Trilium - Docker container

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