CPU and RAM limit
Set Limit
services:
container:
deploy:
resources:
limits:
cpus: ${CPU_LIMIT:-1}
memory: ${MEM_LIMIT:-100M}Set Reservation
services:
container:
deploy:
resources:
reservations:
cpus: ${CPU_RES:-1}
memory: ${MEM_RES:-100M}Last updated