docs: add 'Accessing the app' section to README

How to reach the app (http://localhost:3000), change the port (HOST_PORT),
auth behaviour, first-boot wait, health-check commands, and troubleshooting
the backend-unavailable banner.
This commit is contained in:
NaeemDosh 2026-06-30 16:55:27 +05:00
parent a7e31fcfbd
commit b586639a70

View file

@ -80,13 +80,42 @@ make verify # assert no stray "Onyx" remains in the shipping source
make down # stop make down # stop
``` ```
Requires Docker + Docker Compose v2 and Node ≥ 18 (for the apply script). Once healthy, Requires Docker + Docker Compose v2 and Node ≥ 18 (for the apply script).
open **http://localhost:3000** (set `HOST_PORT` to change the port; Traefik labels on
nginx still apply in production).
> **First boot** pulls the official images and the model server downloads embedding ---
> models (a few GB) — give it several minutes before nginx reports healthy. The api
> server waits on OpenSearch, minio and Postgres, so it's the last to go green. ## Accessing the app
Once the stack is healthy, open:
### **http://localhost:3000**
- **Port** — defaults to `3000` (nginx → web). Change it by setting `HOST_PORT` in
`.env` (e.g. `HOST_PORT=8088`) and `make restart`. In production the nginx Traefik
labels route via your `${FQDN}` instead.
- **Login** — depends on `AUTH_TYPE` in `.env`: `disabled` drops you straight in (good
for a quick local check); `oidc` / `basic` present a login screen. The first account
to register becomes the admin.
- **First boot takes a few minutes.** The model server downloads embedding models (a few
GB) and `api_server` waits on OpenSearch + minio + Postgres, so it's the last to go
green — nginx only starts serving once `api_server` is healthy. Watch progress with:
```bash
make logs # follow the web container
docker compose -f docker-compose.yml ps # see every service's health
```
- **Health checks** (handy for confirming it's actually up, not just the UI shell):
```bash
curl -I http://localhost:3000/ # web UI → 200
curl http://localhost:3000/api/health # backend via proxy → {"success":true,"message":"ok",...}
```
- **Not loading?** If the page shows a branded "backend is currently unavailable"
banner, `api_server` isn't healthy yet — give it another minute, or check
`docker compose -f docker-compose.yml logs api_server`. The most common causes are an
empty `USER_AUTH_SECRET` or a port already in use on the host (`HOST_PORT`).
--- ---