Installation de mailhog pour pouvoir tester l'envoi de mail en local.

This commit is contained in:
2026-02-23 18:58:36 +01:00
parent a4170e83f5
commit 4e158e5485
2 changed files with 19 additions and 1 deletions
+3
View File
@@ -26,3 +26,6 @@ FRANKENPHP_VERSION="dunglas/frankenphp:1.11.2-php8.5"
# PHPMyAdmin
PHPMYADMIN_IMAGE="phpmyadmin:5.2-apache"
PHPMYADMIN_URL=""
# Mail Hog
MAILHOG_URL=""
+15
View File
@@ -0,0 +1,15 @@
services:
mailhog:
restart: unless-stopped
container_name: ${CONTAINER_PREFIX}_mailhog
image: mailhog/mailhog:latest
logging:
driver: 'none'
labels:
- traefik.enable=true
- traefik.http.routers.${CONTAINER_PREFIX}_mailhog.rule=Host(`${MAILHOG_URL}`)
- traefik.http.routers.${CONTAINER_PREFIX}_mailhog.entrypoints=websecure
- "traefik.http.services.${CONTAINER_PREFIX}_mailhog.loadbalancer.server.port=8025"
networks:
- frontend