Nextcloud Docker image based on FPM with optional packages and cron functionality
8.4K
Copyed from https://github.com/nextcloud/docker/tree/5f8fa19f04cb550993c5e470581d074aa8d05c63/.examples
The modified Dockerfile uses the default image as base image and adds dependencies for all optional packages suggested by nextcloud that may be needed for some specific apps and preview generation, as stated in the Prerequisites for manual installation.
The configuration of the preview generation can be done in config.php, as explained in the Configuration Parameters.
The Dockerfile uses supervisor to run the cron job inside the container (so no extra container is needed). This image runs supervisord to start nextcloud and cron as two seperate processes inside the container.
In the Nextcloud base image with PHP-FPM, I've found this message, which appears from time to time:
WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
I've slightly modified the Dockerfile to copy a new www.conf (PHP-FPM default pool configuration) file that sets a higher value for pm.max_children.
Image processing requires a lot of memory. I've increased the value in the memory_limit.ini configuration file to prevent PHP from crashing when processing large images. For more details, see the Nextcloud Gallery Wiki.
The memory requirements when resizing to the default 2048x2048.
| MegaPixels | MegaBytes |
|---|---|
| 14.1 | 99 |
| 12.2 | 87 |
| 8.7 | 66 |
See Defining the PHP memory_limit wiki article for more details.
Content type
Image
Digest
sha256:a089ab191…
Size
700.2 MB
Last updated
about 1 month ago
docker pull swisscloudhosting/nextcloud:34.0.3