Ubuntu Server vm

Currently using windows version. The problem is its getting slower day by day as it grows because of SQLight with raid 5 enabled disk set. I have set up new Ubuntu server vm with PostegrSQL inside our Main server. Can some one pls share me a step by step guide to setup this Ubuntu.

Please read the Orthanc Book:
https://book.orthanc-server.com/users/cookbook.html#obtaining-binaries
https://book.orthanc-server.com/faq/scalability.html
https://book.orthanc-server.com/plugins/postgresql.html