DEV Community

Discussion on: Don't Build Docker Apps Without This Flag

Collapse
 
devalex7 profile image
Alex • Edited

What about limiting the number of cores and/or memory via compatibility mode?
Add to docker-compose
deploy:
Resources:
Limits:
CPUs: '1'
Memory: 2048M

Then > docker-compose --compatibility up

That's what I'm doing, but I will try this out too, thanks!

Collapse
 
code42cate profile image
Jonas Scholz

Yeah! I only skimmed the docs, but this seems to be the same, just for Docker Compose? I rarely use Docker Compose, nice to see that you can do it there as well :)