-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.mailhog.yml
49 lines (43 loc) · 1.29 KB
/
docker-compose.mailhog.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# Pour avoir sous la main un serveur mail de debug, lancer la commande suivante :
# docker-compose -f docker-compose.yml -f docker-compose.mailhog.yml up -d
# Vous pourez alors consulter les mail fictifs envoyes par abesstp
# sur l'interface web ici http://127.0.0.1:8025
#
version: '3'
services:
abesstp-web:
environment:
SMTP_TLS: "off"
SMTP_HOST: "abesstp-mailhog"
SMTP_PORT: "1025"
SMTP_MAILDOMAIN: "abes.fr"
depends_on:
- abesstp-mailhog
abesstp-web-clamav:
environment:
SMTP_TLS: "off"
SMTP_HOST: "abesstp-mailhog"
SMTP_PORT: "1025"
depends_on:
- abesstp-mailhog
abesstp-web-cron:
environment:
SMTP_TLS: "off"
SMTP_HOST: "abesstp-mailhog"
SMTP_PORT: "1025"
depends_on:
- abesstp-mailhog
# un serveur SMTP fictif permettant de debugguer les emails envoyés
abesstp-mailhog:
image: mailhog/mailhog:v1.0.1
container_name: abesstp-mailhog
mem_limit: ${MEM_LIMIT}
memswap_limit: ${MEM_LIMIT}
cpus: ${CPU_LIMIT}
environment:
MH_SMTP_BIND_ADDR: "0.0.0.0:1025" # cf https://github.com/mailhog/MailHog/blob/master/docs/CONFIG.md
ports:
- ${ABESSTP_MAILHOG_HTTP_PORT}:8025
logging:
driver: none # pas de log pour mailhog pour ne pas polluer le debug