summaryrefslogtreecommitdiffstats
path: root/19.0
diff options
context:
space:
mode:
authorGitHub Workflow <workflow@github.com>2021-02-19 13:58:20 +0000
committerGitHub Workflow <workflow@github.com>2021-02-19 13:58:20 +0000
commitd06df6907bdf9086445753c8b7b697b6eccae28a (patch)
tree5b2bafa98491de8114bb87985c5309a11c4ded25 /19.0
parent061d860c0e711c3b4e9e08b2e67b34a4c33a1156 (diff)
Runs update.sh
Diffstat (limited to '19.0')
-rw-r--r--19.0/apache/Dockerfile10
-rw-r--r--19.0/fpm-alpine/Dockerfile10
-rw-r--r--19.0/fpm/Dockerfile10
3 files changed, 24 insertions, 6 deletions
diff --git a/19.0/apache/Dockerfile b/19.0/apache/Dockerfile
index 40a02145..7cc56bdf 100644
--- a/19.0/apache/Dockerfile
+++ b/19.0/apache/Dockerfile
@@ -17,6 +17,8 @@ RUN set -ex; \
# install the PHP extensions we need
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
+ENV PHP_MEMORY_LIMIT 512M
+ENV PHP_UPLOAD_LIMIT 512M
RUN set -ex; \
\
savedAptMark="$(apt-mark showmanual)"; \
@@ -85,7 +87,7 @@ RUN set -ex; \
rm -rf /var/lib/apt/lists/*
# set recommended PHP.ini settings
-# see https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html#enable-php-opcache
+# see https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/server_tuning.html#enable-php-opcache
RUN { \
echo 'opcache.enable=1'; \
echo 'opcache.interned_strings_buffer=8'; \
@@ -97,7 +99,11 @@ RUN { \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
- echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \
+ { \
+ echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
+ echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
+ echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
+ } > /usr/local/etc/php/conf.d/nextcloud.ini; \
\
mkdir /var/www/data; \
chown -R www-data:root /var/www; \
diff --git a/19.0/fpm-alpine/Dockerfile b/19.0/fpm-alpine/Dockerfile
index 4449c7fb..50cf26c6 100644
--- a/19.0/fpm-alpine/Dockerfile
+++ b/19.0/fpm-alpine/Dockerfile
@@ -74,7 +74,9 @@ RUN set -ex; \
apk del .build-deps
# set recommended PHP.ini settings
-# see https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html#enable-php-opcache
+# see https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/server_tuning.html#enable-php-opcache
+ENV PHP_MEMORY_LIMIT 512M
+ENV PHP_UPLOAD_LIMIT 512M
RUN { \
echo 'opcache.enable=1'; \
echo 'opcache.interned_strings_buffer=8'; \
@@ -86,7 +88,11 @@ RUN { \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
- echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \
+ { \
+ echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
+ echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
+ echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
+ } > /usr/local/etc/php/conf.d/nextcloud.ini; \
\
mkdir /var/www/data; \
chown -R www-data:root /var/www; \
diff --git a/19.0/fpm/Dockerfile b/19.0/fpm/Dockerfile
index 6f0930dc..dabfd3de 100644
--- a/19.0/fpm/Dockerfile
+++ b/19.0/fpm/Dockerfile
@@ -17,6 +17,8 @@ RUN set -ex; \
# install the PHP extensions we need
# see https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html
+ENV PHP_MEMORY_LIMIT 512M
+ENV PHP_UPLOAD_LIMIT 512M
RUN set -ex; \
\
savedAptMark="$(apt-mark showmanual)"; \
@@ -85,7 +87,7 @@ RUN set -ex; \
rm -rf /var/lib/apt/lists/*
# set recommended PHP.ini settings
-# see https://docs.nextcloud.com/server/12/admin_manual/configuration_server/server_tuning.html#enable-php-opcache
+# see https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/server_tuning.html#enable-php-opcache
RUN { \
echo 'opcache.enable=1'; \
echo 'opcache.interned_strings_buffer=8'; \
@@ -97,7 +99,11 @@ RUN { \
\
echo 'apc.enable_cli=1' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini; \
\
- echo 'memory_limit=512M' > /usr/local/etc/php/conf.d/memory-limit.ini; \
+ { \
+ echo 'memory_limit=${PHP_MEMORY_LIMIT}'; \
+ echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; \
+ echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; \
+ } > /usr/local/etc/php/conf.d/nextcloud.ini; \
\
mkdir /var/www/data; \
chown -R www-data:root /var/www; \