From 2f249d8dc7f5d8608b20557d024a589a0b02c606 Mon Sep 17 00:00:00 2001 From: kelin Date: Thu, 15 Jan 2026 21:36:14 -0500 Subject: [PATCH] Fix infrastructure stack resource limits corruption - Fix malformed deploy.resources sections in dockge, pihole, glances - Add missing resource limits to dozzle and code-server - Ensure proper YAML indentation for reservations sections - Apply researched resource limits based on service types: * Lightweight: dockge (0.5 CPU), pihole (0.25 CPU) * Web services: dozzle, glances (0.5 CPU each) * Heavy apps: code-server (1.5 CPU for full IDE) - Validate both deployed and repository configurations --- docker-compose/infrastructure.yml | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/docker-compose/infrastructure.yml b/docker-compose/infrastructure.yml index c693025..acd74b9 100644 --- a/docker-compose/infrastructure.yml +++ b/docker-compose/infrastructure.yml @@ -17,6 +17,15 @@ services: # Access at: https://dockge.${DOMAIN} dockge: image: louislam/dockge:1 + deploy: + resources: + limits: + cpus: '0.50' + memory: 256M + pids: 512 + reservations: + cpus: '0.25' + memory: 128M container_name: dockge restart: unless-stopped networks: @@ -45,6 +54,15 @@ services: # Access at: https://pihole.${DOMAIN} pihole: image: pihole/pihole:2024.01.0 + deploy: + resources: + limits: + cpus: '0.25' + memory: 128M + pids: 256 + reservations: + cpus: '0.10' + memory: 64M container_name: pihole restart: unless-stopped networks: @@ -110,6 +128,15 @@ services: # Access at: https://dozzle.${DOMAIN} dozzle: image: amir20/dozzle:latest + deploy: + resources: + limits: + cpus: '0.50' + memory: 256M + pids: 512 + reservations: + cpus: '0.25' + memory: 128M container_name: dozzle restart: unless-stopped networks: @@ -157,6 +184,15 @@ services: # Access at: https://glances.${DOMAIN} glances: image: nicolargo/glances:latest-full + deploy: + resources: + limits: + cpus: '0.50' + memory: 256M + pids: 512 + reservations: + cpus: '0.25' + memory: 128M container_name: glances restart: unless-stopped networks: @@ -182,6 +218,15 @@ services: # Access at: https://code.${DOMAIN} code-server: image: lscr.io/linuxserver/code-server:latest + deploy: + resources: + limits: + cpus: '1.5' + memory: 1G + pids: 2048 + reservations: + cpus: '0.75' + memory: 512M container_name: code-server restart: unless-stopped networks: