Skip to content

Commit

Permalink
Merge pull request #91 from nextcloud/enh/79/customize-php-fpm-config
Browse files Browse the repository at this point in the history
customize php-fpm config
  • Loading branch information
szaimen committed Dec 29, 2021
2 parents f9944db + f740c00 commit 06537c7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Containers/nextcloud/Dockerfile
Expand Up @@ -217,6 +217,13 @@ RUN set -ex; \
; \
rm -rf /var/lib/apt/lists/*

RUN set -ex; \
grep -q '^pm = dynamic' /usr/local/etc/php-fpm.d/www.conf; \
sed -i 's/^pm.max_children =.*/pm.max_children = 100/' /usr/local/etc/php-fpm.d/www.conf; \
sed -i 's/^pm.start_servers =.*/pm.start_servers = 25/' /usr/local/etc/php-fpm.d/www.conf; \
sed -i 's/^pm.min_spare_servers =.*/pm.min_spare_servers = 25/' /usr/local/etc/php-fpm.d/www.conf; \
sed -i 's/^pm.max_spare_servers =.*/pm.max_spare_servers = 75/' /usr/local/etc/php-fpm.d/www.conf

RUN rm -rf /tmp/nextcloud-aio && \
mkdir -p /tmp/nextcloud-aio && \
cd /tmp/nextcloud-aio && \
Expand Down

0 comments on commit 06537c7

Please sign in to comment.