Commit graph

14 commits

Author SHA1 Message Date
Grovy311
01fa527b9c Add production compose stack and stop idle load in containers
The development stack was running permanently on a server: polling file
watchers, a healthcheck that rendered a full page every five seconds and no
memory limit grew next dev to 10 GB and pushed the host into swap.

- add compose.prod.yaml running compiled output in separate api/web services
- make the Dockerfile multi-stage with dev and prod targets, prune
  devDependencies and run the runtime image as node instead of root
- bake API_INTERNAL_URL at build time; next start ignores it at runtime
  because rewrite destinations are resolved into routes-manifest.json
- drop CHOKIDAR_USEPOLLING and WATCHPACK_POLLING
- probe /health instead of /, which redirects to /projects and made every
  healthcheck render the project list
- give every service a memory limit and forbid swap in production
- rename the development compose project to leistungsbilanz-dev so its
  down command cannot target the production stack
- bind development ports to localhost
- close the http server and the SQLite handle on SIGTERM/SIGINT
- match probe user agents in the navigation log filter; Node's fetch sends
  one, so the previous check never matched
- exit docker-start.sh when either supervised process dies
- remove drizzle.config.js, a compiled copy drizzle-kit never reads, and the
  pre-Next index.html/styles.css leftovers

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-15 00:27:22 +02:00
44b6fde940 Add public building project setting 2026-07-31 17:41:30 +02:00
734a2bcfc4 Create clean release database baseline 2026-07-31 14:07:26 +02:00
7c8d4a7ddf Document protected circuit groups 2026-07-31 08:06:10 +02:00
1a77eedaa8 Add automatic project snapshots 2026-07-25 23:27:51 +02:00
59d442593f Expose project-wide history controls 2026-07-25 23:16:46 +02:00
6b6d2c2a42 Rewrite project documentation 2026-07-23 21:05:43 +02:00
01aff46b4f Start Docker stack in background 2026-07-22 22:54:53 +02:00
c991f493da Add Docker development workflow 2026-07-22 22:42:28 +02:00
7580ad0ade Documentation 2026-05-07 22:55:15 +02:00
d1ce485572 Added 1B, 2 and added bootstrap again for site 2026-05-03 22:04:45 +02:00
60771b5929 rewrite 2026-05-03 19:14:44 +02:00
245a5b1485 Added distributionboards 2026-04-30 21:43:45 +02:00
c3e98af5b6 first commit 2026-04-30 18:22:10 +02:00