tenseleyflow/shithub / 708189e

Browse files

swap MailHog for Mailpit (native arm64, drop-in)

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
708189ecde3b65515f9ddf706fc7fc1a77cd4ff7
Parents
1238ab9
Tree
80f7dfb

1 changed file

StatusFile+-
M docker-compose.yml 10 1
docker-compose.ymlmodified
@@ -63,10 +63,19 @@ services:
63
   # Local SMTP catcher (S05). The shithub auth flow writes signup /
63
   # Local SMTP catcher (S05). The shithub auth flow writes signup /
64
   # password-reset emails here when SHITHUB_AUTH__EMAIL_BACKEND=smtp.
64
   # password-reset emails here when SHITHUB_AUTH__EMAIL_BACKEND=smtp.
65
   # Web UI: http://127.0.0.1:8025
65
   # Web UI: http://127.0.0.1:8025
66
+  #
67
+  # We use Mailpit instead of the original MailHog: it's the actively
68
+  # maintained successor, ships native arm64 + amd64 images (so Apple
69
+  # Silicon hosts don't run it under x86 emulation), keeps the same
70
+  # SMTP/UI port shape, and offers the same "swallow all mail and
71
+  # show it in a web UI" semantics.
66
   mailhog:
72
   mailhog:
67
-    image: mailhog/mailhog:latest
73
+    image: axllent/mailpit:latest
68
     container_name: shithub-mailhog
74
     container_name: shithub-mailhog
69
     restart: unless-stopped
75
     restart: unless-stopped
76
+    environment:
77
+      MP_SMTP_BIND_ADDR: "0.0.0.0:1025"
78
+      MP_UI_BIND_ADDR: "0.0.0.0:8025"
70
     ports:
79
     ports:
71
       - "127.0.0.1:1025:1025" # SMTP
80
       - "127.0.0.1:1025:1025" # SMTP
72
       - "127.0.0.1:8025:8025" # web UI
81
       - "127.0.0.1:8025:8025" # web UI