How to Configure RAM+PlayerSlot and CPU in Template

Hello everyone.
I hope someone can help me with the configuration of a template.

I have tried several times to create a template with limits.
The following are meant by the limits:

The container should only receive e.g. 8 GB RAM
The CPU should only have 1
Number of players, how many are only allowed in.

I have already looked several times on the Internet and entered the commands that were found, but to no avail.

I would like to set it up like this for several templates.
Planned games:

Enshrouded
vRising
Valheim

I would be happy if someone knows the commands how to enter it in the template to set the limits.