This key defines how much memory (in MiB) is allocated to the application. It defaults to 512MiB. Entries must be of type integer. The following example attributes 1024 MiB to the app:

{"mem": 1024}

When using a docker-compose.yml, deploy.resources.limits.memory is mapped to mem, using a String of number of bytes plus scale in M for Megabyte or G for Gigabyte (with B and K also possible):

deploy.resources.limits.memory: 1024M
Did this answer your question?