# Self-host TriliumNext Notes

> A hierarchical, self-hosted note-taking application built for large personal knowledge bases.

- Page: https://levelrail.com/templates/trilium/
- JSON: https://levelrail.com/templates/trilium.json
- Category: Productivity
- Licence: AGPL-3.0-or-later (Network copyleft (AGPL) license)
- Source: https://github.com/TriliumNext/Trilium
- Upstream docs: https://triliumnext.github.io/Docs/

## Requirements
- Memory: about 256 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: stable

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| trilium | ghcr.io/triliumnext/trilium | stable | 8080 | trilium_data -> /home/node/trilium-data |

## Deploy

### CLI

```bash
levelrail-cli templates deploy trilium --name my-trilium
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/trilium/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy TriliumNext Notes on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id trilium for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image ghcr.io/triliumnext/trilium:stable is what you deploy there.

Self-host TriliumNext Notes, TriliumNext Notes docker compose file, deploy TriliumNext Notes on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
