more workers for larger sites or long running pages

This commit is contained in:
Robin 2021-05-06 21:40:34 +02:00
parent 646b6b7a82
commit 448458f3f4

View File

@ -14,13 +14,21 @@ RUN BUILD_DEPS="libmcrypt-dev libldap2-dev" && \
RUN { \
echo "upload_max_filesize = 512M"; \
echo "post_max_size = 512M"; \
echo "max_input_time = 600"; \
echo "max_execution_time = 600"; \
echo "max_input_time = 300"; \
echo "max_execution_time = 300"; \
} > /usr/local/etc/php/conf.d/nameless.ini
RUN { \
echo "[www]"; \
echo "pm.max_children = 32"; \
echo "pm.start_servers = 1"; \
echo "pm.min_spare_servers = 1"; \
echo "pm.max_spare_servers = 4" ; \
} > /usr/local/etc/php-fpm.d/nameless.conf
ADD entrypoint.sh /
ARG VERSION=v2.0.0-pr8
ARG VERSION=v2.0.0-pr9
ENV VERSION=${VERSION}
# Used by website to know if it runs using our docker images for statistics