Separation of Database and File artifacts and run only the app in a Server

I am using Amazon AWS Infrastructure to host the application. If the Database and the Files reside with the app server in the frappe, then it is not possible to use the AWS features like Auto Scaling etc.Also keeping files and DB on the same server is a risk, in case the app server fails.

So is there any way to separate the Public/Private files to different volumes or mounts? and DB to a different server?

Thanks in Advance.

@Rajkumar_Thasma in the site_config.json you can define the db_host to enable access to an external database.

I think that the unique way to properly separate the “public” and “private” files in different volumes or mounts, is using symlinks, but do you need ot it by the hand

I will try…Thanks