Get the best configuration according to your budget. But if the budget is lean, I would recommend going for a VPS provider like digital ocean or AWS and use the small instance recommendation (4GB RAM, 4 CPU, 60GB SSD)
The recommendation here Home - DHIS2 Documentation assumes 16GB RAM so you can proportion according to the amount of RAM you will have acquired.