Commit Graph

7 Commits

Author SHA1 Message Date
Julien Calixte
555bffaa89 fix: disable restart on migrate service 2026-03-21 12:33:07 +01:00
Julien Calixte
ac2b70a260 fix: prevent database is locked on concurrent startup
Set busy_timeout before journal_mode=WAL in db.ts so SQLite retries
for 10s instead of failing immediately with the default 0ms timeout.

Extract migration into a dedicated Docker Compose service so both
jetstream and api wait for it to complete before opening the database.
2026-03-21 12:30:17 +01:00
Julien Calixte
282b797206 feat: add /health endpoint and Docker healthcheck 2026-03-17 02:21:24 +01:00
Julien Calixte
cedb29949c chore: docker compose for coolify 2026-03-14 20:27:15 +01:00
Julien Calixte
c84b4c5f97 robustness: split jetstream into own container, add cursor persistence
Jetstream was running backgrounded in the same container as the API server,
so crashes went undetected and Docker never restarted it. Now each process
runs as a separate docker-compose service with independent restart policies.

Also adds cursor persistence to SQLite (saved every 5s) so restarts resume
from where they left off, moves event destructuring inside try/catch blocks,
and adds global unhandled error/rejection handlers for crash visibility.
2026-02-17 01:17:42 +01:00
Julien Calixte
c44c2bac3f logs: add logs for jetstream 2026-02-13 20:14:12 +01:00
Julien Calixte
8ca67971f2 chore: add volume 2026-02-09 22:49:08 +01:00