fix(compose): make published ports configurable, bind infra to loopback

↗ view on GitHub · Thijs de Zoete · 2026-07-20 · 969233d8

Fixed host ports assume a dev machine. On Dokploy, 3000 is the dashboard's,
so the frontend fails with 'port is already allocated'. Each published port
now takes an env override with the current value as default, so local dev is
unchanged.

Infra ports (postgres, mailpit, storage) now bind 127.0.0.1 instead of
0.0.0.0. They were reachable from the internet on a public host while still
carrying default credentials, and the mailpit inbox exposes password-reset
links. Compose service-to-service networking is unaffected.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Repository open-legal-products/mike
Author Thijs de Zoete <thijsdezoete@gmail.com>
Authored
Committed
Parents 11bd520c
Stats 1 file changed , +15 , -8
Part of Land a self-hosted Mike stack

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-969233d8.md from inside the repo you want the change in.

⬇ Download capture-commit-969233d8.md