Add configurable web container memory limits

This commit is contained in:
mARTin-B78 2026-08-19 18:35:34 +02:00
parent fd8f545d16
commit d3fc2d44ae
4 changed files with 15 additions and 4 deletions

View File

@ -5,6 +5,11 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · versioned wi
---
## [1.20.43] — 2026-08-19
### Added
- **The web container now has configurable memory protection.** Compose defaults to an 8 GB limit with a 2 GB reservation; `APP_MEM_LIMIT` and `APP_MEM_RESERVATION` can override those values for heavier workloads.
## [1.20.42] — 2026-08-19
### Changed

View File

@ -1 +1 @@
1.20.42
1.20.43

View File

@ -7,6 +7,12 @@ services:
container_name: tts-voice-creator-clone-and-design-2
restart: unless-stopped
# Keep a runaway OCR/import/generation request from consuming all host RAM.
# Override these per machine when large PDF jobs need more headroom:
# APP_MEM_LIMIT=12g APP_MEM_RESERVATION=2g docker compose up -d
mem_limit: "${APP_MEM_LIMIT:-8g}"
mem_reservation: "${APP_MEM_RESERVATION:-2g}"
ports:
- "7890:7890"

View File

@ -10,7 +10,7 @@
<meta name="format-detection" content="telephone=no">
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="#2563EB">
<meta name="app-version" content="1.20.42">
<meta name="app-version" content="1.20.43">
<link rel="manifest" href="/manifest.webmanifest">
<link rel="icon" href="/static/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/static/icon.svg">
@ -27,7 +27,7 @@
<!-- ── Core styles (local — no CDN dependency for first paint) ────────── -->
<link rel="stylesheet" href="/static/vendor/mdi/materialdesignicons.min.css">
<link rel="stylesheet" href="/static/style.css?v=1.20.42">
<link rel="stylesheet" href="/static/style.css?v=1.20.43">
<!-- ── Flag icons — non-blocking (loaded async, icons appear after JS) ── -->
@ -378,7 +378,7 @@ window.toggleNavTree = function(treeId, chevronId) {
</script>
<!-- loader.js: fetches sections → loads JS modules → removes skeleton -->
<script src="/static/loader.js?v=1.20.42"></script>
<script src="/static/loader.js?v=1.20.43"></script>
</body>
</html>