Nextcloud really slow after installation

Hi I’m running occ scripts with the following command line from the docker host

docker exec -it -u www-data <NAME_OF_NEXTCLOUD_CONTAINER> php occ <OCC_PARAMETER>

i even have a script on my host container for that purpose:

#!/bin/bash
docker exec -i -u www-data ncprod php occ $1

Here you have to take care if the parameter has spaces you have to put the parameter in quotation marks. Example:

./occ "maintenance:mode --on"

Regarding the original topic:
I have the same issue with my docker instance. My web fronted needs around 10-60s to load, depending on the app. I already had a post here in this forum (Why is my Nextcloud frontend so slow?).
But my only conclusion was to disable a few apps. Thus i could push the time to around 4-5s for a load of the frontend, which still feels very slow.

Meanwhile, i made a “bare-metal” test installation on the same host, where my docker container are running. And the bare-metal nextcloud-instance feels lightning fast - sometimes the load times are below 1s. I’m already thinking about moving back to bare-metal or considering the use of VM’s like proxmox. But somehow i still don’t want to give up docker, because i really like the concept.

1 Like