You can set the application to run at server.port=5000
You need to allow traffic from the security group of your beanstalk environment into your database's security group.