'nextcloud-aio-nextcloud' takes forever upon first start

Thank you!

As mentioned in my post i have tried already searching and ive went through that entire thread you linked before but turning off/on bruteforce for example via php occ also takes around 2-5 minutes to execute and does nothing to make it faster and or work properly.

The only thing that appears is a

sudo -u www-data php /var/www/html/occ config:system:set auth.bruteforce.protection.enabled --type=bool
--value=false

Warning: Failed to set memory limit to 0 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0
The current PHP memory limit is below the recommended value of 512MB.

warning when running im trying to change any config value.
And all this inside the nextcloud-aio-nextcloud docker container.

sudo -u www-data php -i | grep memory_limit
memory_limit => 128M => 128M

gives me 128M and

php -i | grep memory_limit # as root inside container
memory_limit => 512M => 512M

Ive also tried following this thread that is also on a hetzner server, same as me. With slow config delays. But the hints and tips in that thread didnt help at all. And for them after 30 minutes it worked normally but for me even after multiple hours its still not functional and just (Starting).