8058
Ir
irvc / files
irvc / deploy / dev / README.md
1.3 KB
1# IRVC dev stack (Podman) 2 3Local dev instance. Two containers, host networking, no TLS: 4 5- `irvc` — built from `Containerfile` (Go server + built frontend), `:8080`. 6- `livekit-server` — `:7880`, media `7881/tcp`, `7882/udp`. 7 8Host networking is used so LiveKit can advertise reachable ICE ports. 9 10## Run 11 12 cd deploy/dev 13 podman-compose up -d --build 14 15Open <http://localhost:8080>. Use `localhost`, not a LAN IP: session cookies 16are `Secure`, and browsers only accept those on `https` or `localhost`. 17 18State lives in the `irvc-dev_irvc-data` volume (`/data`: `irvc.db`, `media`). 19Reset it with `podman-compose down -v`. 20 21## Test users 22 23A one-shot `seed` service waits for the DB, then inserts test accounts 24(`deploy/dev/seed.sql`). Password for all: `11111111`. 25 26- `sean`, `bananaman`, `wombat`, `moonlord`, `toaster`, `kebab` 27 28Seed passwords are reset on every `up`. To add another invite instead: 29 30 podman exec irvc-dev_irvc_1 /app/irvc invite 31 32Then open its `/join?token=...` URL. 33 34## Frontend dev (HMR) 35 36The container serves the built frontend. For hot reload, run Vite on the host 37instead; `vite.config.ts` already proxies `/api` (and the websocket) to `:8080`: 38 39 cd web && npm install && npm run dev # http://localhost:5173 40 41## Logs and stop 42 43 podman-compose logs -f 44 podman-compose down