Merge pull request #388 from fettpl/fix/360-docker-resource-limits
ops: add resource limits to docker-compose.yml
This commit is contained in:
commit
19d78882a5
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