Add frontend and Caddy to Docker Compose dev environment

Containerize the frontend dev server (Vite) and add a Caddy reverse
proxy for HTTPS termination, replacing the manual local setup. The
Caddy config proxies /api/* to the backend and everything else to the
frontend dev server.

Also simplify start.sh: remove --local Poetry mode, extract
get_compose_cmd helper, and document new services and DEV_HOST env var.
This commit is contained in:
Viktor Barzin 2026-02-06 23:45:29 +00:00
parent 2626870396
commit e55902d813
No known key found for this signature in database
GPG key ID: 0EB088298288D958
3 changed files with 89 additions and 92 deletions

View file

@ -0,0 +1,11 @@
{$DEV_HOST:localhost}:443 {
tls internal
handle /api/* {
reverse_proxy app:5001
}
handle {
reverse_proxy frontend:5173
}
}