diff --git a/apps/dokploy/templates/roundcube/docker-compose.yml b/apps/dokploy/templates/roundcube/docker-compose.yml index 56defe04..562f350f 100644 --- a/apps/dokploy/templates/roundcube/docker-compose.yml +++ b/apps/dokploy/templates/roundcube/docker-compose.yml @@ -1,13 +1,9 @@ -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 @@ -15,6 +11,7 @@ services: - ROUNDCUBEMAIL_SMTP_SERVER=${SMTP_SERVER} networks: - dokploy-network + networks: dokploy-network: - external: true \ No newline at end of file + external: true``` diff --git a/apps/dokploy/templates/roundcube/index.ts b/apps/dokploy/templates/roundcube/index.ts index 81ba7456..8df8c743 100644 --- a/apps/dokploy/templates/roundcube/index.ts +++ b/apps/dokploy/templates/roundcube/index.ts @@ -1,11 +1,24 @@ -import type { Schema, Template } from "../utils"; +import { + type DomainSchema, + type Schema, + type Template, + generateRandomDomain, +} from "../utils"; export function generate(schema: Schema): Template { + const randomDomain = generateRandomDomain(schema); const envs = [ "DEFAULT_HOST=tls://mail.example.com", "SMTP_SERVER=tls://mail.example.com", - ]; - return { envs }; -} \ No newline at end of file + const domains: DomainSchema[] = [ + { + host: randomDomain, + port: 80, + serviceName: "roundcubemail", + }, + ]; + + return { envs, domains }; +} diff --git a/apps/dokploy/templates/templates.ts b/apps/dokploy/templates/templates.ts index 4dcf85ca..ebd0a649 100644 --- a/apps/dokploy/templates/templates.ts +++ b/apps/dokploy/templates/templates.ts @@ -501,15 +501,15 @@ export const templates: TemplateData[] = [ 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:"", + description: + "Free and open source webmail software for the masses, written in PHP.", + logo: "roundcube.svg", + links: { + github: "https://github.com/roundcube/roundcubemail", + website: "https://roundcube.net/", + docs: "https://roundcube.net/about/", }, - tags:["self-hosted","mail","webmail"], + tags: ["self-hosted", "mail", "webmail"], load: () => import("./roundcube/index").then((m) => m.generate), - - } + }, ];