Add worker service with e-mail delivery and dev Mailpit

- worker: sends email_outbox mail over SMTP (lettre), woken by
  LISTEN/NOTIFY, SKIP LOCKED claiming, retries with backoff,
  hu/en templates (text + HTML), hourly cleanup of expired data
- migration 0002: next_attempt_at, failed_at, notify trigger
- docker-compose.override.yml: Mailpit for development only
- Dockerfiles: lock shared cargo cache mounts for parallel builds

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-15 11:49:40 +00:00
co-authored by Claude Opus 5.5
parent 3a84110565
commit 771ece41b1
19 changed files with 1050 additions and 10 deletions
+2
View File
@@ -9,6 +9,7 @@ members = [
"crates/horoscope-client",
"services/horoscope-api",
"services/backend",
"services/worker",
]
[workspace.package]
@@ -31,6 +32,7 @@ axum = "0.8"
axum-extra = { version = "0.10", features = ["cookie"] }
base64 = "0.22"
jsonwebtoken = { version = "9", default-features = false }
lettre = { version = "0.11", default-features = false, features = ["builder", "hostname", "smtp-transport", "tokio1", "tokio1-rustls", "webpki-roots", "ring"] }
rand = "0.9"
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
sha2 = "0.10"