diff --git a/Dockerfile b/Dockerfile index 47b9860..4fe32d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,6 +40,7 @@ RUN apk add --no-cache \ nginx \ ffmpeg \ php7-cli \ + php7-pecl-apcu \ php7-opcache \ php7-pcntl \ php7-imagick \ diff --git a/rootfs/etc/cont-init.d/00-nextcloud b/rootfs/etc/cont-init.d/00-nextcloud index da3f8fa..cd3cd2f 100644 --- a/rootfs/etc/cont-init.d/00-nextcloud +++ b/rootfs/etc/cont-init.d/00-nextcloud @@ -45,6 +45,8 @@ s6-setuidgid nginx ./occ app:disable survey_client s6-setuidgid nginx ./occ app:disable systemtags s6-setuidgid nginx ./occ app:disable updatenotification +s6-setuidgid nginx ./occ config:system:set --value '\OC\Memcache\APCu' memcache.local + s6-setuidgid nginx ./occ config:system:set --value "https://$DOMAIN" overwrite.cli.url s6-setuidgid nginx ./occ config:system:set --value "localhost" trusted_domains 0 s6-setuidgid nginx ./occ config:system:set --value "$DOMAIN" trusted_domains 1 diff --git a/rootfs/etc/php7/conf.d/enable_apcu_for_cli.ini b/rootfs/etc/php7/conf.d/enable_apcu_for_cli.ini new file mode 100644 index 0000000..008bcab --- /dev/null +++ b/rootfs/etc/php7/conf.d/enable_apcu_for_cli.ini @@ -0,0 +1 @@ +apc.enable_cli=1