Constantly spinning drive due to Nextcloud.log writing every 15 minutes

When the docker containter of nexcloud is active the drive that contains the data is allways spin up.

I read oline that this ocurrs because the nexcloud.log file is writing every 15min and is located in the data folder .

How can i move the log folder without causing anny issues or anny other method to avoid disk spining when there is nobody accesing it.

Thanks in advace

it was the mariadb containter that was in the same drive