fix(deploy): isolate demo settings and monitoring
This commit is contained in:
1 parent
6dd5a0d54a
commit
6d6aa9ffe8
7 files changed
+331
-36
No files matched your search
@@ -75,10 +75,11 @@ Templates and rendering live in `backend/internal/usecase/notification/mailtempl
|
||||
```sh
|
||||
make -C deploy demo-seed DEMO_MODE=isolated
|
||||
make -C deploy monitoring-up DEMO_MODE=isolated
|
||||
make -C deploy monitoring-down DEMO_MODE=isolated
|
||||
make -C deploy demo-down DEMO_MODE=isolated
|
||||
```
|
||||
|
||||
The seed creates a separate `lincodex-demo` project, bank, and synthetic accounts; repeated runs are idempotent. The local frontend is available at `http://localhost:8090`; you do not need to pass `APP_HTTP_BIND` on the command line. The target uses the root `.env` and `deploy/demo/demo.env`, falling back to the public example if the latter is absent. The command prints logins; `DEMO_ACCOUNT_PASSWORD` sets their password. For external access, choose your own password and share it separately with participants.
|
||||
The seed creates a separate `lincodex-demo` project, bank, and synthetic accounts; repeated runs are idempotent. The local frontend is available at `http://localhost:8090`; you do not need to pass `APP_HTTP_BIND` on the command line. Settings load in this order: the root `.env`, `deploy/demo/demo.env.example`, then local `deploy/demo/demo.env` if it exists. Copy the example to `demo.env` to set local values; without that file, the example provides the defaults. The command prints logins; `DEMO_ACCOUNT_PASSWORD` sets their password. For external access, choose your own password and share it separately with participants.
|
||||
|
||||
The guide is at `/demo`. Main accounts: `candidate@demo.lincodex.test`, `prepared-1@demo.lincodex.test` through `prepared-6@demo.lincodex.test`, `employer-alpha@demo.lincodex.test`, and `employer-beta@demo.lincodex.test`. Follow the candidate from assessment to result, then send an invitation as the employer and accept it as the candidate with selected contacts.
|
||||
|
||||
@@ -170,7 +171,7 @@ make -C deploy monitoring-logs
|
||||
make -C deploy monitoring-down
|
||||
```
|
||||
|
||||
By default, the project joins the core network. After starting the demo, run `make -C deploy monitoring-up DEMO_MODE=isolated` to connect it to the `lincodex-demo` network. Grafana is bound to loopback; Prometheus, Loki, Alloy, and exporters remain internal. Dashboards cover Go, PostgreSQL, Redis, SeaweedFS, the host, and product metrics. Kafka has no dedicated scrape yet. The React telemetry SDK is not connected. Alert rules exist; notification delivery needs separate configuration.
|
||||
By default, the project joins the core network. After starting the demo, run `make -C deploy monitoring-up DEMO_MODE=isolated` to connect it to the `lincodex-demo` network. Demo Grafana is available by default at `http://localhost:3001`; set `DEMO_GRAFANA_PORT` to change the port. Stop this monitoring project with `make -C deploy monitoring-down DEMO_MODE=isolated`. Grafana is bound to loopback; Prometheus, Loki, Alloy, and exporters remain internal. Dashboards cover Go, PostgreSQL, Redis, SeaweedFS, the host, and product metrics. Kafka has no dedicated scrape yet. The React telemetry SDK is not connected. Alert rules exist; notification delivery needs separate configuration.
|
||||
|
||||
Prometheus retains metrics for 14 days with a 4 GB cap; Loki retains logs for 7 days. Keep contacts, resumes, raw URLs, and user identifiers out of labels. Alloy accesses the Docker API through a restricted socket proxy; even read-only Docker API access can expose sensitive container configuration. Treat this component as privileged.
|
||||
|
||||
|
||||
Reference in new issue
Block a user