fix: update roundcube template to match spec

This commit is contained in:
seppulcro
2024-09-19 08:37:37 +01:00
parent 869e58739f
commit 8e227a3286
3 changed files with 28 additions and 18 deletions
@@ -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
external: true```
+17 -4
View File
@@ -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 };
}
const domains: DomainSchema[] = [
{
host: randomDomain,
port: 80,
serviceName: "roundcubemail",
},
];
return { envs, domains };
}