From 318a071f1122b67359bad08b77cdd8a1236d4260 Mon Sep 17 00:00:00 2001 From: Madhura68 Date: Wed, 6 May 2026 08:05:54 +0200 Subject: [PATCH] chore(deploy): docker resources sizing for Apple M2 host MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Verruimt de container-limits van 3 cores / 4 GB (oude QNAP N5095 target) naar 6 cores / 8 GB voor draaien op een Apple M2 met 16 GB unified memory. Reservations omhoog naar 1 core / 1 GB. Aanname: M2 base (8 cores). Pas omlaag aan voor M2 base met 8 GB host of omhoog voor M2 Pro/Max. NB: README.md en CLAUDE.md verwijzen nog steeds naar QNAP/N5095. Niet in deze PR aangepast — apart op te schonen als de QNAP-deploy definitief wegvalt. Co-Authored-By: Claude Opus 4.7 (1M context) --- docker-compose.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index f12b762..e00552d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,16 +29,18 @@ services: restart: unless-stopped - # N5095 heeft 4 cores. Geef agent er 3, laat 1 voor QTS. - # Memory: 4GB is ruim voor één Claude Code sessie + één npm install. + # Apple M2 host (8 cores, ≥16 GB unified). Geef de agent royaal de + # ruimte voor parallelle npm/tsx/git-werk; macOS + Docker Desktop + # gebruiken zelf ook merkbaar geheugen, dus laat 4-8 GB over. + # Pas omlaag aan voor M2 base met 8 GB of omhoog voor M2 Pro/Max. deploy: resources: limits: - cpus: "3.0" - memory: 4g + cpus: "6.0" + memory: 8g reservations: - cpus: "0.5" - memory: 512m + cpus: "1.0" + memory: 1g healthcheck: test: ["CMD", "curl", "-fsS", "http://localhost:8080/health"]