Skip to content

Limit resource usage for the dev container#660

Merged
danniel merged 1 commit intomainfrom
feature/dev-container-limits
Feb 23, 2026
Merged

Limit resource usage for the dev container#660
danniel merged 1 commit intomainfrom
feature/dev-container-limits

Conversation

@danniel
Copy link
Collaborator

@danniel danniel commented Feb 23, 2026

Limit the CPU and RAM usage for the development container

@danniel danniel requested a review from tudoramariei February 23, 2026 11:44
@greptile-apps
Copy link

greptile-apps bot commented Feb 23, 2026

Greptile Summary

Added resource constraints to the development container to prevent excessive CPU and memory consumption on developer machines. The changes limit the webapp_psql service to 2 CPUs and 4GB of RAM, which are reasonable limits for a development environment running a Django application with PostgreSQL.

Key Changes:

  • Added cpus: "2" to limit CPU usage to 2 cores
  • Added mem_limit: "4g" to cap memory at 4 gigabytes
  • Applied only to the webapp service, database container remains unrestricted

Confidence Score: 5/5

  • This PR is safe to merge with no risk
  • The changes are minimal and non-breaking, adding only resource limits to prevent runaway resource consumption in development environments. The values chosen (2 CPUs, 4GB RAM) are reasonable for a Django web application and shouldn't impact normal development workflows.
  • No files require special attention

Important Files Changed

Filename Overview
docker-compose.yml Added CPU and memory limits to webapp_psql service (2 CPUs, 4GB RAM)

Last reviewed commit: a304c28

@danniel danniel merged commit 468245e into main Feb 23, 2026
10 checks passed
@danniel danniel deleted the feature/dev-container-limits branch February 23, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants