update nextcloud #13
5 changed files with 12 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM mariadb:latest
|
FROM mariadb:10.6
|
||||||
|
|
||||||
ADD innodb.cnf /etc/mysql/mariadb.conf.d/innodb.cnf
|
ADD innodb.cnf /etc/mysql/mariadb.conf.d/innodb.cnf
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@ services:
|
||||||
- "/nextcloud/db:/var/lib/mysql"
|
- "/nextcloud/db:/var/lib/mysql"
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=toor
|
- MYSQL_ROOT_PASSWORD=toor
|
||||||
|
- MARIADB_AUTO_UPGRADE=true
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
|
|
|
@ -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 \
|
RUN \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
|
@ -58,6 +58,8 @@ RUN \
|
||||||
bz2 \
|
bz2 \
|
||||||
intl \
|
intl \
|
||||||
bcmath \
|
bcmath \
|
||||||
|
sysvsem \
|
||||||
|
pcntl \
|
||||||
opcache && \
|
opcache && \
|
||||||
CFLAGS="-I/usr/src/php" docker-php-ext-install xmlreader
|
CFLAGS="-I/usr/src/php" docker-php-ext-install xmlreader
|
||||||
|
|
||||||
|
@ -67,14 +69,8 @@ RUN \
|
||||||
docker-php-ext-enable apcu
|
docker-php-ext-enable apcu
|
||||||
|
|
||||||
# compile imagick from master branch as there isn't any release for php8 yet.
|
# compile imagick from master branch as there isn't any release for php8 yet.
|
||||||
ENV IMAGICK_SHA 448c1cd0d58ba2838b9b6dff71c9b7e70a401b90
|
|
||||||
RUN \
|
RUN \
|
||||||
curl -L -o /tmp/imagick.tar.gz https://github.com/Imagick/imagick/archive/${IMAGICK_SHA}.tar.gz &&\
|
pecl install imagick && \
|
||||||
tar --strip-components=1 -xf /tmp/imagick.tar.gz &&\
|
|
||||||
phpize &&\
|
|
||||||
./configure &&\
|
|
||||||
make &&\
|
|
||||||
make install &&\
|
|
||||||
docker-php-ext-enable imagick
|
docker-php-ext-enable imagick
|
||||||
|
|
||||||
# Activate user-defined .htaccess
|
# Activate user-defined .htaccess
|
||||||
|
@ -98,7 +94,8 @@ ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||||
ADD update-htaccess.sh /update-htaccess.sh
|
ADD update-htaccess.sh /update-htaccess.sh
|
||||||
|
|
||||||
RUN crontab /opt/crontab && chmod +x /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"]
|
ENTRYPOINT ["supervisord"]
|
||||||
|
|
|
@ -3,4 +3,4 @@ SHELL=/bin/sh
|
||||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
|
|
||||||
# Run cron.php every 15 minutes
|
# 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
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
opcache.enable=1
|
opcache.enable=1
|
||||||
opcache.enable_cli=1
|
opcache.enable_cli=1
|
||||||
opcache.interned_strings_buffer=8
|
opcache.interned_strings_buffer=16
|
||||||
opcache.max_accelerated_files=10000
|
opcache.max_accelerated_files=10000
|
||||||
opcache.memory_consumption=128
|
opcache.memory_consumption=128
|
||||||
opcache.save_comments=1
|
opcache.save_comments=1
|
||||||
opcache.revalidate_freq=1
|
opcache.revalidate_freq=60
|
||||||
|
|
||||||
memory_limit = 1G
|
memory_limit = 1G
|
||||||
apc.enable_cli=1
|
apc.enable_cli=1
|
||||||
|
|
Loading…
Reference in a new issue