Trilium Docker Guide

The benefits of note taking:

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.

Notes can also be a helpful reference when you need to review the material later or want to revisit a specific topic. Additionally, taking notes can help you stay focused and attentive during lectures or meetings and can be a useful tool for organizing your thoughts and ideas.

Trilium - Docker container:

Docker - First steps

One recurrent topic that has to be addressed in the first place is to setup docker in our machine.

For that, you can check this guide or if you want to have a general introduction on how to use adapt configuration files you can check this guide.

We will be using the image on DockerHub:

The configuration file that we will use today is:

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


Deploy with CLI

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 discover the devices in your LAN, the service will be running in or localhost:5000 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

Interested to discover similar services that you can self-host with Docker? - Check this out:


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.