Before 7.4 the usual advice was to add a memory flag to Extra Parameters. Unraid 7.4 added a Memory limit field to the container form, in the advanced view.
Open the container, switch to advanced view, fill the field with a value such as 2g and apply. If an old flag is still in Extra Parameters, remove it so the two do not disagree.
Watch the app afterwards. A limit that is too tight makes the kernel kill the process, often a database, over and over. You can spot that in the system log:
grep -i "Memory cgroup out of memory" /var/log/syslog
If you see it, raise the limit or give the app less work. A limit protects the rest of the server, it does not make the app use less memory by itself.
Further reading: Unraid 7.4.0 release notes