Limit ressources of docker image

Hi,

I migrated my ninja 5 from a classic install on a plesk managed vps to a much faster vps with docker ce running ninja 5 in a container. so far so good. much less hassle with the docker but is there a way to tame the ressources of the containers a bit more that it stays stable? my ninja is only for me alone and not really a lot of data. after some days the containers eating up to 1 gb ram. I can manually restart them and they are back to around 600mb. has anyone tipps to tune this abit. I am still new to docker, just use it for the last 2 months. I also have some wordpress installs running on the vps and i managed to cut their ressources down without any performance or stability impact.

Hi,

@david do you have any suggestions?

You could try editing the php.ini / mysql.conf file within each container and set hard limits for the memory consumption.