From 869e58739f43c76b2dabfc13dda1ed1a83bcc3d9 Mon Sep 17 00:00:00 2001 From: seppulcro Date: Tue, 17 Sep 2024 19:48:55 +0100 Subject: [PATCH] feat: add roundcube template --- apps/dokploy/public/templates/roundcube.svg | 15 ++++++++++++++ .../templates/roundcube/docker-compose.yml | 20 +++++++++++++++++++ apps/dokploy/templates/roundcube/index.ts | 11 ++++++++++ apps/dokploy/templates/templates.ts | 15 ++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 apps/dokploy/public/templates/roundcube.svg create mode 100644 apps/dokploy/templates/roundcube/docker-compose.yml create mode 100644 apps/dokploy/templates/roundcube/index.ts diff --git a/apps/dokploy/public/templates/roundcube.svg b/apps/dokploy/public/templates/roundcube.svg new file mode 100644 index 00000000..04238a06 --- /dev/null +++ b/apps/dokploy/public/templates/roundcube.svg @@ -0,0 +1,15 @@ + + + + + + + + + + \ No newline at end of file diff --git a/apps/dokploy/templates/roundcube/docker-compose.yml b/apps/dokploy/templates/roundcube/docker-compose.yml new file mode 100644 index 00000000..56defe04 --- /dev/null +++ b/apps/dokploy/templates/roundcube/docker-compose.yml @@ -0,0 +1,20 @@ +version: '2' +services: + roundcubemail: + image: roundcube/roundcubemail:latest + container_name: roundcubemail + volumes: + - ./www:/var/www/html + - ./db/sqlite:/var/roundcube/db + ports: + - '9002:80' + environment: + - ROUNDCUBEMAIL_DB_TYPE=sqlite + - ROUNDCUBEMAIL_SKIN=elastic + - ROUNDCUBEMAIL_DEFAULT_HOST=${DEFAULT_HOST} + - ROUNDCUBEMAIL_SMTP_SERVER=${SMTP_SERVER} + networks: + - dokploy-network +networks: + dokploy-network: + external: true \ No newline at end of file diff --git a/apps/dokploy/templates/roundcube/index.ts b/apps/dokploy/templates/roundcube/index.ts new file mode 100644 index 00000000..81ba7456 --- /dev/null +++ b/apps/dokploy/templates/roundcube/index.ts @@ -0,0 +1,11 @@ +import type { Schema, Template } from "../utils"; + +export function generate(schema: Schema): Template { + const envs = [ + "DEFAULT_HOST=tls://mail.example.com", + "SMTP_SERVER=tls://mail.example.com", + + ]; + + return { envs }; +} \ No newline at end of file diff --git a/apps/dokploy/templates/templates.ts b/apps/dokploy/templates/templates.ts index 5603b188..4dcf85ca 100644 --- a/apps/dokploy/templates/templates.ts +++ b/apps/dokploy/templates/templates.ts @@ -497,4 +497,19 @@ export const templates: TemplateData[] = [ tags: ["self-hosted", "storage"], load: () => import("./gitea/index").then((m) => m.generate), }, + { + id: "roundcube", + name: "Roundcube", + version: "1.6.9", + description:"Free and open source webmail software for the masses, written in PHP.", + logo:"roundcube.svg", + links:{ + github:"", + website:"", + docs:"", + }, + tags:["self-hosted","mail","webmail"], + load: () => import("./roundcube/index").then((m) => m.generate), + + } ];