Use the Redash api to create visualizations and got sqlalchemy.exc.TimeoutError

We use the Redash API to create visualizations, and then we got the error
sqlalchemy.exc.TimeoutError
sqlalchemy.exc.TimeoutError:QueuePool limit of size 5 overflow 10 reached, connection time out, timeout 30

Anything we need modify in the docker-compose file?