add trilium

This commit is contained in:
Tobias Petrich 2026-05-01 14:13:02 +02:00
parent fe3a62c6a5
commit 3f350f338d
No known key found for this signature in database
GPG Key ID: 220BE847F99B1B62
3 changed files with 55 additions and 1 deletions

View File

@ -0,0 +1,22 @@
[Unit]
Description=Trilium deployment
Wants=network-online.target
After=network.target network-online.target
[Container]
ContainerName=trilium
Image=docker.io/triliumnext/trilium:latest
PublishPort=127.0.0.1:9400:8080
Volume=/var/vol/trilium/data:/home/node/trilium-data:Z
Volume=/usr/share/zoneinfo/Europe/Berlin:/etc/localtime:ro
Environment=TRILIUM_DATA_DIR=/home/node/trilium-data
AutoUpdate=registry
[Service]
# Restart service when sleep finishes
Restart=on-failure
RestartSec=60
[Install]
# Start by default on boot
WantedBy=multi-user.target default.target

View File

@ -63,3 +63,7 @@ services:
systemd_service_name: "silverbullet" systemd_service_name: "silverbullet"
service_directories: service_directories:
- space - space
trilium:
systemd_service_name: "trilium"
service_directories:
- data

View File

@ -170,6 +170,28 @@ http:
certResolver: letsencrypt certResolver: letsencrypt
service: authentik-service service: authentik-service
# Router for trilium.rohrschacht.de
trilium-router:
rule: "Host(`trilium.rohrschacht.de`)"
entryPoints:
- websecure
middlewares:
- authentik
priority: 10
tls:
certResolver: letsencrypt
service: trilium-service
# Router for trilium.rohrschacht.de authentik outpost path
trilium-router-auth:
rule: "Host(`trilium.rohrschacht.de`) && PathPrefix(`/outpost.goauthentik.io/`)"
entryPoints:
- websecure
priority: 15
tls:
certResolver: letsencrypt
service: authentik-service
services: services:
# Service for wekan.rohrschacht.de # Service for wekan.rohrschacht.de
wekan-service: wekan-service:
@ -247,4 +269,10 @@ http:
silverbullet-service: silverbullet-service:
loadBalancer: loadBalancer:
servers: servers:
- url: "http://localhost:9300" - url: "http://localhost:9300"
# Service for trilium.rohrschacht.de
trilium-service:
loadBalancer:
servers:
- url: "http://localhost:9400"