Merge pull request #388 from fettpl/fix/360-docker-resource-limits

ops: add resource limits to docker-compose.yml
This commit is contained in:
Chummy 2026-02-17 01:10:48 +08:00 committed by GitHub
commit 19d78882a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,6 +39,16 @@ services:
# Gateway API port (override HOST_PORT if 3000 is taken) # Gateway API port (override HOST_PORT if 3000 is taken)
- "${HOST_PORT:-3000}:3000" - "${HOST_PORT:-3000}:3000"
# Resource limits
deploy:
resources:
limits:
cpus: '2'
memory: 2G
reservations:
cpus: '0.5'
memory: 512M
# Health check # Health check
healthcheck: healthcheck:
test: ["CMD", "zeroclaw", "doctor"] test: ["CMD", "zeroclaw", "doctor"]