Add docker-compose stack: app + Caddy reverse proxy with automatic TLS

Caddy's site address comes from SITE_ADDRESS (defaults to "localhost").
Left at that default, Caddy detects it isn't a public hostname and
issues a self-signed cert from its own internal CA — no domain needed
for local/dev testing. Set to a real domain, it gets a genuine Let's
Encrypt certificate automatically instead.

DB, encrypted master key and logs are bind-mounted from ./data/ on the
host (not opaque Docker-managed volumes), so they survive container
restarts/rebuilds and stay reachable for manual inspection/backup
directly from the repo root. ./data/ is gitignored.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-21 11:15:04 +02:00
co-authored by Claude Sonnet 5
parent 2dedc283c6
commit d35784d574
3 changed files with 45 additions and 0 deletions
+1
View File
@@ -7,3 +7,4 @@ master.xprv.enc
.pytest_cache/
*.egg-info/
logs/
data/