mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
feat: Add numerous new blueprint templates for various applications
This commit is contained in:
16
blueprints/roundcube/docker-compose.yml
Normal file
16
blueprints/roundcube/docker-compose.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
services:
|
||||
roundcubemail:
|
||||
image: roundcube/roundcubemail:1.6.9-apache
|
||||
volumes:
|
||||
- ./www:/var/www/html
|
||||
- ./db/sqlite:/var/roundcube/db
|
||||
environment:
|
||||
- ROUNDCUBEMAIL_DB_TYPE=sqlite
|
||||
- ROUNDCUBEMAIL_SKIN=elastic
|
||||
- ROUNDCUBEMAIL_DEFAULT_HOST=${DEFAULT_HOST}
|
||||
- ROUNDCUBEMAIL_SMTP_SERVER=${SMTP_SERVER}
|
||||
|
||||
|
||||
networks:
|
||||
dokploy-network:
|
||||
external: true
|
||||
24
blueprints/roundcube/index.ts
Normal file
24
blueprints/roundcube/index.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
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",
|
||||
];
|
||||
|
||||
const domains: DomainSchema[] = [
|
||||
{
|
||||
host: randomDomain,
|
||||
port: 80,
|
||||
serviceName: "roundcubemail",
|
||||
},
|
||||
];
|
||||
|
||||
return { envs, domains };
|
||||
}
|
||||
Reference in New Issue
Block a user