From ddff93393d9505de4a78977fe63357f6354e8c36 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 5 Jan 2023 17:23:37 +1000 Subject: [PATCH] added dockerfile --- Dockerfile.nextcloud-fpm | 9 ++++ policy.xml | 99 ++++++++++++++++++++++++++++++++++++++++ supervisord.conf | 22 +++++++++ 3 files changed, 130 insertions(+) create mode 100644 Dockerfile.nextcloud-fpm create mode 100644 policy.xml create mode 100644 supervisord.conf 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