How to save memory and use less then 16GB + 4 cpu on self-hosted?

What can i comment out in compose.yaml to make it work fine in limited resource?

I have already commented out postgres(use external cluster), agent-eval-worker,agent-worker, workflows-worker, workflows-backend

Can i remove jobs-runner as well?

And do i need retooldb-postgres? But it looks tiny