added Caddyfile

Our favorite hits aside from nginx conf

Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
2026-08-29 16:24:44 +08:00
parent be9b00dec6
commit c5699714dc
2 changed files with 45 additions and 3 deletions
+14 -3
View File
@@ -1,14 +1,13 @@
# Self-Hosting `new_starr` (Docker Compose) — Step-by-Step
This stack bundles everything: PostgreSQL, Valkey (Redis), Garage (S3), the API, and the
frontend. Battle-tested end-to-end on a completely fresh Debian machine on 2026-08-29 —
frontend. Battle-tested end-to-end on a completely fresh Debian machine on 2026-08-29
every gotcha below actually happened once and is now fixed or documented.
---
## 0. What you need
- A Linux machine (Debian/Ubuntu commands below — adapt the package manager for others)
- Docker Engine + Compose plugin
- Node.js 22 + pnpm (only needed once, to build the frontend bundle)
- Git access to this repo
@@ -161,7 +160,19 @@ docker compose ps
- Frontend: **http://localhost:4650**
- Backend: http://localhost:3024/api
If both respond, you're done.
If both respond, you're done with local testing.
---
## 9. (Optional) Put a real domain + HTTPS in front
For actually deploying this somewhere reachable, use the `Caddyfile` at the repo root
as a template. It's a standalone Caddy install on the host (not part of
`docker-compose.yml`) that reverse-proxies 3 domains to the 3 ports already published
above (`:4650`, `:3024`, `:3900`) and handles Let's Encrypt certificates automatically.
See the comments at the top of `Caddyfile` for exact steps. Not needed for local
`localhost:4650` testing — skip this until you're pointing a real domain at the
machine.
---