Nextcloud is slow to open folders

I have a Linux server with nextcloud installed through Docker, this server has 12 users who access it daily and has 2TB of data. I have a folder with over 2,800 folders inside. When I enter the mother folder, it takes about 30 seconds to load the other 2,800 folders. How can I make this process faster?

Hardware: i7 8700
8gb ram
1 hd 8tb Western Digital Purple