From a8c7ab539ac632df78fd4173f8b1e97f78d2cdc0 Mon Sep 17 00:00:00 2001 From: ordinarthur <@arthurbarre.js@gmail.com> Date: Wed, 6 May 2026 13:02:36 +0200 Subject: [PATCH] =?UTF-8?q?chore(dev):=20swap=20mailhog=20=E2=86=92=20mail?= =?UTF-8?q?pit=20(multi-arch,=20maintenu)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mailhog n'est plus maintenu et ne ship qu'en amd64 — sur Apple Silicon ça déclenche un warning Rosetta. Mailpit est le successeur drop-in (mêmes ports SMTP 1025 / UI 8025), multi-arch, activement maintenu. --- docker-compose.dev.yml | 13 ++++++++++--- docs/tech/dev-setup.md | 4 ++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 7ad7a4c..f2cdc8b 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -67,13 +67,20 @@ services: exit 0; " - mailhog: - image: mailhog/mailhog:latest - container_name: rubis-mailhog + # Mailpit = successeur multi-arch et activement maintenu de Mailhog, + # protocole et UI compatibles (SMTP 1025, web UI 8025). + mailpit: + image: axllent/mailpit:latest + container_name: rubis-mailpit restart: unless-stopped ports: - '1025:1025' # SMTP - '8025:8025' # Web UI + healthcheck: + test: ['CMD', 'wget', '--quiet', '--spider', 'http://localhost:8025/livez'] + interval: 10s + timeout: 5s + retries: 5 volumes: postgres_data: diff --git a/docs/tech/dev-setup.md b/docs/tech/dev-setup.md index 4913c8e..6691088 100644 --- a/docs/tech/dev-setup.md +++ b/docs/tech/dev-setup.md @@ -20,8 +20,8 @@ Un seul fichier à la racine fait tourner les 4 services dont l'API a besoin : | **Redis** | 6380 | 6379 | Backend BullMQ + cache | | **MinIO API** | 9100 | 9000 | S3-compatible. Bucket `rubis-invoices` créé au boot. | | **MinIO Console** | 9101 | 9001 | UI web : http://localhost:9101 — login `rubis` / `rubis-dev-secret` | -| **Mailhog SMTP** | 1025 | 1025 | Catch-all pour les emails locaux | -| **Mailhog UI** | 8025 | 8025 | UI web : http://localhost:8025 | +| **Mailpit SMTP** | 1025 | 1025 | Catch-all pour les emails locaux | +| **Mailpit UI** | 8025 | 8025 | UI web : http://localhost:8025 | Les ports hôte sont **décalés** (5433, 6380, 9100…) pour éviter les collisions avec un Postgres/Redis perso éventuellement déjà lancé.