Skip to content

Commit 2b5a1d9

Browse files
authored
Merge pull request #1309 from jeffersoncbd/canary
feat: Add Trilium app template
2 parents 2090292 + e7195c8 commit 2b5a1d9

File tree

4 files changed

+51
-0
lines changed

4 files changed

+51
-0
lines changed
23.8 KB
Loading

apps/dokploy/templates/templates.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,4 +1483,19 @@ export const templates: TemplateData[] = [
14831483
tags: ["forms", "analytics"],
14841484
load: () => import("./formbricks/index").then((m) => m.generate),
14851485
},
1486+
{
1487+
id: "trilium",
1488+
name: "Trilium",
1489+
description:
1490+
"Trilium Notes is a hierarchical note taking application with focus on building large personal knowledge bases.",
1491+
logo: "trilium.png",
1492+
version: "latest",
1493+
links: {
1494+
github: "https://github.com/zadam/trilium",
1495+
website: "https://github.com/zadam/trilium",
1496+
docs: "https://github.com/zadam/trilium/wiki/",
1497+
},
1498+
tags: ["self-hosted", "productivity", "personal-use"],
1499+
load: () => import("./trilium/index").then((m) => m.generate),
1500+
},
14861501
];
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
services:
2+
trilium:
3+
image: zadam/trilium:latest
4+
ports:
5+
- 8080
6+
networks:
7+
- dokploy-network
8+
restart: always
9+
volumes:
10+
- /root/trilium-backups:/home/node/trilium-data/backup
11+
12+
networks:
13+
dokploy-network:
14+
external: true
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import {
2+
type DomainSchema,
3+
type Schema,
4+
type Template,
5+
generateRandomDomain,
6+
} from "../utils";
7+
8+
export function generate(schema: Schema): Template {
9+
const triliumDomain = generateRandomDomain(schema);
10+
11+
const domains: DomainSchema[] = [
12+
{
13+
host: triliumDomain,
14+
port: 8080,
15+
serviceName: "trilium",
16+
},
17+
];
18+
19+
return {
20+
domains,
21+
};
22+
}

0 commit comments

Comments
 (0)