I have to use a memory limitation for a service and I also need to use version 3 in the docker-compose file.
My piece of code from the docker-compose.yml is:
version '3'
.
.
.
service1:
.
.
.
mem_limit: 500m
.
.
.
This with version 2 works and it limits me correctly that service. My question is how to put this limitation with version 3 since I need it.
I hope help, thank you very much