Files
errors.bitreport.pt/deploy/lxc/README.md
T
1sonhadorandPaperclip 4604606033 feat(errors): migrate error-reporting stack from PostgreSQL to MariaDB (BIT-255)
Replace Postgres with MariaDB 11 in docker-compose; convert all
database/error_reporting and db/migrations SQL to InnoDB-friendly syntax
(DATETIME(6), AUTO_INCREMENT, ON DUPLICATE KEY). Run admin portal DDL in the
same migrate one-shot as error_reporting.

Switch ingest-api, collector-worker, and api from pg to mysql2 (pools,
parameterized queries, transactions). Align ingest writes with
er_incident_occurrences and include project_id on idempotency inserts.

Add scripts/run-mysql-migrations.sh for host-side applies; update LXC
run-migrate/verify, deployment docs, and .env.example (mysql://, ER_MYSQL_*).

Verified: npm run build + npm test in ingest-api and collector-worker;
npm run build in api. Full docker compose not run here (no local daemon).

Co-Authored-By: Paperclip <[email protected]>
2026-03-22 19:29:11 +00:00

16 lines
969 B
Markdown

# Native LXC deploy (no Docker)
Scripts and unit files for running **ingest-api**, **admin-ui**, and **collector-worker** on Debian/Ubuntu LXC with **MariaDB** (or MySQL 8+) on the same CT or another host.
Authoritative runbook: [`docs/deployment/bitreport-error-reporting-lxc-proxmox.md`](../../docs/deployment/bitreport-error-reporting-lxc-proxmox.md).
| Path | Purpose |
|------|---------|
| `env.example` | Template for `/etc/error-reporting/env` |
| `run-migrate.sh` | Apply migrations + seed (after MariaDB is up) |
| `verify.sh` | `curl` ingest `/health` and optional checks |
| `systemd/*.service` | Unit files (adjust `WorkingDirectory` if not `/opt/errors.bitreport.pt`) |
| `nginx/*.conf.example` | TLS reverse proxy sketch |
Docker-based path remains in [`../../docker-compose.yml`](../../docker-compose.yml) and [`../../docs/deployment/bitreport-error-reporting-compose-proxmox.md`](../../docs/deployment/bitreport-error-reporting-compose-proxmox.md).