zadam/trilium was last rebuilt 810 days ago because the original author handed the repository to the community project and put his own in maintenance mode. The project is very much alive — triliumnext/trilium was rebuilt 24 days ago. Same story as Pi-hole: we were pinned to an abandoned original, not a dead project. A genuinely clean swap, verified against upstream's own docs rather than assumed: identical data path (/home/node/trilium-data), identical port (8080), and TriliumNext states there are no special migration steps — it opens an existing zadam database as-is. TRILIUM_DATA_DIR is now set explicitly, matching upstream's compose. URL metadata repointed at the maintained repo so the App Center links somewhere that still gets commits. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
45 lines
2.1 KiB
YAML
Executable File
45 lines
2.1 KiB
YAML
Executable File
networks:
|
|
DOCKER_NETWORK_DATA: #LIBREPORTAL|DOCKER_NETWORK_TAG|DOCKER_NETWORK_DATA
|
|
external: true
|
|
|
|
services:
|
|
trilium-service: #LIBREPORTAL|SERVICE_TAG_1|trilium-service
|
|
container_name: trilium-service
|
|
image: triliumnext/trilium:latest #LIBREPORTAL|TRILIUM_VERSION_TAG|latest
|
|
restart: unless-stopped
|
|
hostname: trilium
|
|
# GLUETUN_OFF_BEGIN
|
|
ports:
|
|
- "PORTS_DATA_1" #LIBREPORTAL|PORTS_TAG_1|PORTS_DATA_1
|
|
# GLUETUN_OFF_END
|
|
labels:
|
|
libreportal.category: "CATEGORY_DATA" #LIBREPORTAL|CATEGORY_TAG|CATEGORY_DATA
|
|
libreportal.title: "TITLE_DATA" #LIBREPORTAL|TITLE_TAG|TITLE_DATA
|
|
libreportal.backup.db: "sqlite:::trilium-data/document.db"
|
|
traefik.enable: TRAEFIK_ENABLE_DATA #LIBREPORTAL|TRAEFIK_ENABLE_TAG|TRAEFIK_ENABLE_DATA
|
|
# TRAEFIK_PORT_1_BEGIN
|
|
traefik.http.routers.trilium-service.entrypoints: web,websecure
|
|
traefik.http.routers.trilium-service.rule: Host(`DOMAINSUBNAME_DATA_1`) #LIBREPORTAL|DOMAINSUBNAME_TAG_1|DOMAINSUBNAME_DATA_1
|
|
traefik.http.routers.trilium-service.tls: true
|
|
traefik.http.routers.trilium-service.tls.certresolver: production
|
|
traefik.http.services.trilium-service.loadbalancer.server.port: PORT_INTERNAL_DATA_1 #LIBREPORTAL|PORT_INTERNAL_TAG_1|PORT_INTERNAL_DATA_1
|
|
traefik.http.routers.trilium-service.middlewares: MIDDLEWARE_DATA_1 #LIBREPORTAL|MIDDLEWARE_TAG_1|MIDDLEWARE_DATA_1
|
|
# TRAEFIK_PORT_1_END
|
|
healthcheck:
|
|
disable: HEALTHCHECK_DATA #LIBREPORTAL|HEALTHCHECK_TAG|HEALTHCHECK_DATA
|
|
# Set explicitly, as upstream's own compose does. The path is unchanged from
|
|
# the zadam image, which is what makes this a drop-in: an existing instance
|
|
# keeps its database and TriliumNext opens it as-is.
|
|
environment:
|
|
- TRILIUM_DATA_DIR=/home/node/trilium-data
|
|
volumes:
|
|
- "./trilium-data/:/home/node/trilium-data"
|
|
# GLUETUN_OFF_BEGIN
|
|
networks:
|
|
DOCKER_NETWORK_DATA: #LIBREPORTAL|DOCKER_NETWORK_TAG|DOCKER_NETWORK_DATA
|
|
ipv4_address: IP_DATA_1 #LIBREPORTAL|IP_TAG_1|IP_DATA_1
|
|
# GLUETUN_OFF_END
|
|
# GLUETUN_ON_BEGIN
|
|
# network_mode: "container:gluetun-service"
|
|
# GLUETUN_ON_END
|