update nextcloud #13

Closed
bsod wants to merge 33 commits from master into 22.2.3
5 changed files with 12 additions and 14 deletions

View file

@ -1,4 +1,4 @@
FROM mariadb:latest
FROM mariadb:10.6
ADD innodb.cnf /etc/mysql/mariadb.conf.d/innodb.cnf

View file

@ -18,6 +18,7 @@ services:
- "/nextcloud/db:/var/lib/mysql"
environment:
- MYSQL_ROOT_PASSWORD=toor
- MARIADB_AUTO_UPGRADE=true
networks:
- internal

View file

@ -1,6 +1,6 @@
FROM php:8.0-apache
FROM php:8.1-apache
ENV NEXTCLOUD_VERSION 21.0.5
ENV NEXTCLOUD_VERSION 26.0.3
RUN \
apt-get update && \
@ -58,6 +58,8 @@ RUN \
bz2 \
intl \
bcmath \
sysvsem \
pcntl \
opcache && \
CFLAGS="-I/usr/src/php" docker-php-ext-install xmlreader
@ -67,14 +69,8 @@ RUN \
docker-php-ext-enable apcu
# compile imagick from master branch as there isn't any release for php8 yet.
ENV IMAGICK_SHA 448c1cd0d58ba2838b9b6dff71c9b7e70a401b90
RUN \
curl -L -o /tmp/imagick.tar.gz https://github.com/Imagick/imagick/archive/${IMAGICK_SHA}.tar.gz &&\
tar --strip-components=1 -xf /tmp/imagick.tar.gz &&\
phpize &&\
./configure &&\
make &&\
make install &&\
pecl install imagick && \
docker-php-ext-enable imagick
# Activate user-defined .htaccess
@ -98,7 +94,8 @@ ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD update-htaccess.sh /update-htaccess.sh
RUN crontab /opt/crontab && chmod +x /update-htaccess.sh
RUN mkdir /nc_data_ext && chown www-data: /nc_data_ext
VOLUME ["/var/www/html/config","/var/www/html/data"]
VOLUME ["/var/www/html/config","/nc_data_ext"]
ENTRYPOINT ["supervisord"]

View file

@ -3,4 +3,4 @@ SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# Run cron.php every 15 minutes
*/15 * * * * cd /var/www/html && sudo -u www-data php ./cron.php
*/5 * * * * cd /var/www/html && sudo -u www-data php ./cron.php

View file

@ -1,10 +1,10 @@
opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
opcache.revalidate_freq=60
memory_limit = 1G
apc.enable_cli=1