mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Merge branch 'canary' into feat-add-convex-tpl
This commit is contained in:
commit
f38fb96eaf
BIN
apps/dokploy/public/templates/trilium.png
Normal file
BIN
apps/dokploy/public/templates/trilium.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
@ -1,4 +1,3 @@
|
|||||||
version: "3.8"
|
|
||||||
services:
|
services:
|
||||||
plausible_db:
|
plausible_db:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
@ -24,7 +23,7 @@ services:
|
|||||||
hard: 262144
|
hard: 262144
|
||||||
|
|
||||||
plausible:
|
plausible:
|
||||||
image: ghcr.io/plausible/community-edition:v2.1.4
|
image: ghcr.io/plausible/community-edition:v2.1.5
|
||||||
restart: always
|
restart: always
|
||||||
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
|
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -34,7 +34,7 @@ export const templates: TemplateData[] = [
|
|||||||
{
|
{
|
||||||
id: "plausible",
|
id: "plausible",
|
||||||
name: "Plausible",
|
name: "Plausible",
|
||||||
version: "v2.1.4",
|
version: "v2.1.5",
|
||||||
description:
|
description:
|
||||||
"Plausible is a open source, self-hosted web analytics platform that lets you track website traffic and user behavior.",
|
"Plausible is a open source, self-hosted web analytics platform that lets you track website traffic and user behavior.",
|
||||||
logo: "plausible.svg",
|
logo: "plausible.svg",
|
||||||
@ -1483,6 +1483,21 @@ export const templates: TemplateData[] = [
|
|||||||
tags: ["forms", "analytics"],
|
tags: ["forms", "analytics"],
|
||||||
load: () => import("./formbricks/index").then((m) => m.generate),
|
load: () => import("./formbricks/index").then((m) => m.generate),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "trilium",
|
||||||
|
name: "Trilium",
|
||||||
|
description:
|
||||||
|
"Trilium Notes is a hierarchical note taking application with focus on building large personal knowledge bases.",
|
||||||
|
logo: "trilium.png",
|
||||||
|
version: "latest",
|
||||||
|
links: {
|
||||||
|
github: "https://github.com/zadam/trilium",
|
||||||
|
website: "https://github.com/zadam/trilium",
|
||||||
|
docs: "https://github.com/zadam/trilium/wiki/",
|
||||||
|
},
|
||||||
|
tags: ["self-hosted", "productivity", "personal-use"],
|
||||||
|
load: () => import("./trilium/index").then((m) => m.generate),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "convex",
|
id: "convex",
|
||||||
name: "Convex",
|
name: "Convex",
|
||||||
|
14
apps/dokploy/templates/trilium/docker-compose.yml
Normal file
14
apps/dokploy/templates/trilium/docker-compose.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
services:
|
||||||
|
trilium:
|
||||||
|
image: zadam/trilium:latest
|
||||||
|
ports:
|
||||||
|
- 8080
|
||||||
|
networks:
|
||||||
|
- dokploy-network
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- /root/trilium-backups:/home/node/trilium-data/backup
|
||||||
|
|
||||||
|
networks:
|
||||||
|
dokploy-network:
|
||||||
|
external: true
|
22
apps/dokploy/templates/trilium/index.ts
Normal file
22
apps/dokploy/templates/trilium/index.ts
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import {
|
||||||
|
type DomainSchema,
|
||||||
|
type Schema,
|
||||||
|
type Template,
|
||||||
|
generateRandomDomain,
|
||||||
|
} from "../utils";
|
||||||
|
|
||||||
|
export function generate(schema: Schema): Template {
|
||||||
|
const triliumDomain = generateRandomDomain(schema);
|
||||||
|
|
||||||
|
const domains: DomainSchema[] = [
|
||||||
|
{
|
||||||
|
host: triliumDomain,
|
||||||
|
port: 8080,
|
||||||
|
serviceName: "trilium",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
return {
|
||||||
|
domains,
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user