Merge pull request #1341 from drudge/templates/mailpit

feat: add Mailpit template
This commit is contained in:
Mauricio Siu 2025-02-23 14:30:38 -06:00 committed by GitHub
commit e00e19ec01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="500" height="460" viewBox="0 0 132.292 121.708" version="1.1" id="svg6" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
<defs id="defs10"/>
<path d="M12.321 0l53.861 53.918L120.365 0zM5.155 9.025l60.842 59.673 61.211-59.489-.185 36.835L66.921 70.54l15.164 12.616-8.137 5.986-41.609.184c-4.838-.022-25.877-18.34-27.185-41.255z" fill-opacity=".941" fill="#2d4a5f" id="path2" style="fill:#ffffff;fill-opacity:1"/>
<path d="M78.385 72.049l53.907-21.679-8.031 57.318-11.845-9.132c-21.727 23.171-45.255 26.289-67.997 20.837S12.281 98.39 5.155 83.8-.67 53.116 2.843 38.769c1.13 10.511-1.313 16.316 6.38 33.612 6.31 11.399 14.413 20.417 25.89 24.956 13.9 6.195 32.247 3.357 41.701-3.039l14.24-12.156z" fill="#00b786" id="path4"/>
</svg>

After

Width:  |  Height:  |  Size: 828 B

View File

@ -0,0 +1,25 @@
services:
mailpit:
image: axllent/mailpit:v1.22.3
restart: unless-stopped
ports:
- '1025:1025'
volumes:
- 'mailpit-data:/data'
environment:
- MP_SMTP_AUTH_ALLOW_INSECURE=true
- MP_MAX_MESSAGES=5000
- MP_DATABASE=/data/mailpit.db
- MP_UI_AUTH=${MP_UI_AUTH}
- MP_SMTP_AUTH=${MP_SMTP_AUTH}
healthcheck:
test:
- CMD
- /mailpit
- readyz
interval: 5s
timeout: 20s
retries: 10
volumes:
mailpit-data:

View File

@ -0,0 +1,31 @@
import {
type DomainSchema,
type Schema,
type Template,
generateBase64,
generatePassword,
generateRandomDomain,
} from "../utils";
export function generate(schema: Schema): Template {
const domains: DomainSchema[] = [
{
host: generateRandomDomain(schema),
port: 8025,
serviceName: "mailpit",
},
];
const defaultPassword = generatePassword();
const envs = [
"# Uncomment below if you want basic auth on UI and SMTP",
`#MP_UI_AUTH=mailpit:${defaultPassword}`,
`#MP_SMTP_AUTH=mailpit:${defaultPassword}`,
];
return {
domains,
envs,
};
}

View File

@ -393,6 +393,21 @@ export const templates: TemplateData[] = [
tags: ["chat"],
load: () => import("./open-webui/index").then((m) => m.generate),
},
{
id: "mailpit",
name: "Mailpit",
version: "v1.22.3",
description:
"Mailpit is a tiny, self-contained, and secure email & SMTP testing tool with API for developers.",
logo: "mailpit.svg",
links: {
github: "https://github.com/axllent/mailpit",
website: "https://mailpit.axllent.org/",
docs: "https://mailpit.axllent.org/docs/",
},
tags: ["email", "smtp"],
load: () => import("./mailpit/index").then((m) => m.generate),
},
{
id: "listmonk",
name: "Listmonk",