In most cases on Compose, database connections is managed through HAProxy or other portals. Connection limits for portals are enumerated in the table below. If you need more connections, it is possible to add portals via the Security page on your deployment.
100 - 1000
Compose for MySQL
1: PostgreSQL: If your database needs more connections and you are unable to set the connections value any higher, then add additional resources , and check to see if the connection limit can be raised.
2: Compose for MySQL: There is a MAXIMUM of 151 connections per deployment.
If this article didn't solve things, summon a human and get some help!