commit ddff93393d9505de4a78977fe63357f6354e8c36 Author: michael Date: Thu Jan 5 17:23:37 2023 +1000 added dockerfile diff --git a/Dockerfile.nextcloud-fpm b/Dockerfile.nextcloud-fpm new file mode 100644 index 0000000..fcf830a --- /dev/null +++ b/Dockerfile.nextcloud-fpm @@ -0,0 +1,9 @@ +FROM nextcloud:stable-fpm +RUN apt update && apt install -y --no-install-recommends sudo nfs-common libreoffice libreoffice-java-common default-jre imagemagick ghostscript smbclient iputils-ping ffmpeg procps supervisor +RUN rm -rf /var/lib/apt/lists/* +RUN mkdir -p /var/log/supervisord /var/run/supervisord +COPY supervisord.conf / +COPY policy.xml /etc/ImageMagick-6/policy.xml +ENV NEXTCLOUD_UPDATE=1 +CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"] + diff --git a/policy.xml b/policy.xml new file mode 100644 index 0000000..5a2d25a --- /dev/null +++ b/policy.xml @@ -0,0 +1,99 @@ + + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/supervisord.conf b/supervisord.conf new file mode 100644 index 0000000..4f76259 --- /dev/null +++ b/supervisord.conf @@ -0,0 +1,22 @@ +[supervisord] +nodaemon=true +logfile=/var/log/supervisord/supervisord.log +pidfile=/var/run/supervisord/supervisord.pid +childlogdir=/var/log/supervisord/ +logfile_maxbytes=50MB ; maximum size of logfile before rotation +logfile_backups=10 ; number of backed up logfiles +loglevel=error + +[program:php-fpm] +stdout_logfile=/dev/stdout +stdout_logfile_maxbytes=0 +stderr_logfile=/dev/stderr +stderr_logfile_maxbytes=0 +command=php-fpm + +[program:cron] +stdout_logfile=/dev/stdout +stdout_logfile_maxbytes=0 +stderr_logfile=/dev/stderr +stderr_logfile_maxbytes=0 +command=/cron.sh