i had the same issue. this thread helped me narrowing down the issue to database connection pooling. the strapi docs are quite clear on this:
When using Docker, change the pool
minvalue to0as Docker will kill any idle connections, making it impossible to keep any open connections to the database