feat(compose): add mailpit

This commit is contained in:
jon r 2024-10-11 02:20:43 +02:00
parent 2f1f3de4ad
commit ee4dea2ea0
3 changed files with 31 additions and 0 deletions

View File

@ -2,6 +2,7 @@ name: funkwhale-net
include:
- path: compose/net.dnsmasq.yml
- path: compose/net.traefik.yml
- path: compose/net.mailpit.yml
# Nowadays people rarely use the default `bridge` network in
# Docker (called `docker0` on the host system), why it often
# has no containers present.

View File

@ -0,0 +1,17 @@
http:
services:
test-funkwhale-mailpit:
loadbalancer:
servers:
- url: "http://172.17.0.1:8025"
passhostheader: true
routers:
test-funkwhale-mailpit-web:
entrypoints: web
rule: Host(`mailpit.funkwhale.test`)
service: test-funkwhale-mailpit
test-funkwhale-mailpit-webs:
entrypoints: webs
rule: Host(`mailpit.funkwhale.test`)
service: test-funkwhale-mailpit
tls: true

13
compose/net.mailpit.yml Normal file
View File

@ -0,0 +1,13 @@
services:
mailpit:
image: axllent/mailpit
volumes:
- ../.state/mailpit:/data
network_mode: host
environment:
MP_UI_BIND_ADDR: 172.17.0.1:8025
MP_SMTP_BIND_ADDR: 172.17.0.1:1025
MP_MAX_MESSAGES: 5000
MP_DATABASE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1