Home Install Trilium on Docker
Post
Cancel
Preview Image

Install Trilium on Docker

This install assumes that Docker has been installed previously, and extends the Docker stack created for the Traefik Reverse Proxy.

Trilium is a notes app that can run on desktop or server. I have it running in desktop mode on the Mac, and sync’d to the server version running in Docker on Titan.

Install Trilium

Create folder for Trilium data:

1
2
3
cd ~/docker
mkdir trilium
mkdir trilium/data

Add the following service definition to dc-trilium.yml in docker root folder:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: "3.9"

# NETWORKS ####################################################

networks:
  traefik_proxy:
    external: true

# SERVICES ####################################################

services:

  trilium:
    container_name: trilium
    image: zadam/trilium:latest
    #
    restart: unless-stopped
    #
    networks:
      - traefik_proxy
    #
    volumes:
      - $DOCKERDIR/trilium/data:/home/node/trilium-data
    labels:
      - "traefik.enable=true"
      ## HTTP Routers
      - "traefik.http.routers.trilium-secure.entrypoints=web_https"
      - "traefik.http.routers.trilium-secure.rule=Host(`trilium.$DOMAINNAME_CLOUD_SERVER`)"
      - "traefik.http.routers.trilium-secure.tls=true"
      # Middlewares
      #- "traefik.http.routers.trilium-secure.middlewares=authelia@docker"
      ## HTTP Services
      - "traefik.http.routers.trilium-secure.service=trilium-svc"
      - "traefik.http.services.trilium-svc.loadbalancer.server.port=8080"
This post is licensed under CC BY 4.0 by the author.