From 4ac2323a2ac8a2e5883b1025063dff67e8b35af6 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Wed, 6 May 2026 23:21:25 +0300 Subject: [PATCH] add mailpit to dev shell and process-compose Mailpit listens on 1025 (smtp) and 8025 (web ui). Backend now depends on it as a healthy dep so dev signups can flush their confirmation emails to mailpit instead of /dev/null. --- flake.nix | 1 + process-compose.yaml | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/flake.nix b/flake.nix index fb42a49..c8fed26 100644 --- a/flake.nix +++ b/flake.nix @@ -24,6 +24,7 @@ typescript postgresql process-compose + mailpit ]; shellHook = '' diff --git a/process-compose.yaml b/process-compose.yaml index f4b785f..872fa59 100644 --- a/process-compose.yaml +++ b/process-compose.yaml @@ -11,12 +11,24 @@ processes: initial_delay_seconds: 1 period_seconds: 2 + mailpit: + command: mailpit --smtp 127.0.0.1:1025 --listen 127.0.0.1:8025 + readiness_probe: + http_get: + host: 127.0.0.1 + port: 8025 + path: / + initial_delay_seconds: 1 + period_seconds: 2 + backend: command: php artisan serve --host=127.0.0.1 --port=8000 working_dir: ./backend depends_on: postgres: condition: process_healthy + mailpit: + condition: process_healthy readiness_probe: http_get: host: 127.0.0.1