mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix: update roundcube template to match spec
This commit is contained in:
@@ -1,13 +1,9 @@
|
|||||||
version: '2'
|
|
||||||
services:
|
services:
|
||||||
roundcubemail:
|
roundcubemail:
|
||||||
image: roundcube/roundcubemail:latest
|
image: roundcube/roundcubemail:latest
|
||||||
container_name: roundcubemail
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./www:/var/www/html
|
- ./www:/var/www/html
|
||||||
- ./db/sqlite:/var/roundcube/db
|
- ./db/sqlite:/var/roundcube/db
|
||||||
ports:
|
|
||||||
- '9002:80'
|
|
||||||
environment:
|
environment:
|
||||||
- ROUNDCUBEMAIL_DB_TYPE=sqlite
|
- ROUNDCUBEMAIL_DB_TYPE=sqlite
|
||||||
- ROUNDCUBEMAIL_SKIN=elastic
|
- ROUNDCUBEMAIL_SKIN=elastic
|
||||||
@@ -15,6 +11,7 @@ services:
|
|||||||
- ROUNDCUBEMAIL_SMTP_SERVER=${SMTP_SERVER}
|
- ROUNDCUBEMAIL_SMTP_SERVER=${SMTP_SERVER}
|
||||||
networks:
|
networks:
|
||||||
- dokploy-network
|
- dokploy-network
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
dokploy-network:
|
dokploy-network:
|
||||||
external: true
|
external: true```
|
||||||
|
|||||||
@@ -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 {
|
export function generate(schema: Schema): Template {
|
||||||
|
const randomDomain = generateRandomDomain(schema);
|
||||||
const envs = [
|
const envs = [
|
||||||
"DEFAULT_HOST=tls://mail.example.com",
|
"DEFAULT_HOST=tls://mail.example.com",
|
||||||
"SMTP_SERVER=tls://mail.example.com",
|
"SMTP_SERVER=tls://mail.example.com",
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
return { envs };
|
const domains: DomainSchema[] = [
|
||||||
|
{
|
||||||
|
host: randomDomain,
|
||||||
|
port: 80,
|
||||||
|
serviceName: "roundcubemail",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
return { envs, domains };
|
||||||
}
|
}
|
||||||
@@ -501,15 +501,15 @@ export const templates: TemplateData[] = [
|
|||||||
id: "roundcube",
|
id: "roundcube",
|
||||||
name: "Roundcube",
|
name: "Roundcube",
|
||||||
version: "1.6.9",
|
version: "1.6.9",
|
||||||
description:"Free and open source webmail software for the masses, written in PHP.",
|
description:
|
||||||
logo:"roundcube.svg",
|
"Free and open source webmail software for the masses, written in PHP.",
|
||||||
links:{
|
logo: "roundcube.svg",
|
||||||
github:"",
|
links: {
|
||||||
website:"",
|
github: "https://github.com/roundcube/roundcubemail",
|
||||||
docs:"",
|
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),
|
load: () => import("./roundcube/index").then((m) => m.generate),
|
||||||
|
},
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user