docker-compose.yml
service needs, Ergomake will split the memory equally between services.
For example, if you have two services and your environment size-limit is one Gi, each service will get 512 Mi.
GiB
and MiB
sound confusing, see this
page.resources
attribute within your docker-compose.yml
.
Imagine, for example, that you want to allow your back-end to consume 896 MiB of memory, and you want your front-end to consume the remaining 128 MiB.
In that case, you’d write the following docker-compose.yml
file.