How to create a DB server for GIT

is it possible to create separate DB server for GIT either a EC2 server or a RDS