ops: add resource limits to docker-compose.yml
Add CPU and memory constraints to prevent runaway resource consumption: - Limits: 2 CPUs, 2 GB memory - Reservations: 0.5 CPUs, 512 MB memory Closes #360 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
639032c952
commit
ac5cce4ec5
1 changed files with 10 additions and 0 deletions
|
|
@ -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"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue