Galaxy keeps on recreating containers after deployment

Hi guys. I am using Galaxy for deployment. Since our app was in early development one compact container was enough, now as there are some users the app has around 60 connections at a time. And it is working very laggy. So I scaled the app to 4 containers. So it is working better but still fetching data from db works laggy and there is this problem with deploying the app each time. So I just deployed and cannot access the app. It just shows a blank screen with no serious errors. And in the galaxy I went to the containers tab I see containers being created and removed rapidly. And it says only 1 or 2 containers run at once. However it says deployment is successful and there are no errors in the logs.
What is this how can I fix this?