From 1b39ea8fbc5b118010eb1107c98deff409ed101a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Wed, 7 Oct 2020 13:06:52 +0200 Subject: [PATCH] Initial commit. --- Dockerfile | 8 ++++++++ README.md | 3 +++ supervisord.conf | 22 ++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 supervisord.conf diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d08a5ef --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM nextcloud:apache +RUN apt-get update && apt-get install -y \ + supervisor \ + && rm -rf /var/lib/apt/lists/* \ + && mkdir /var/log/supervisord /var/run/supervisord +COPY supervisord.conf / +ENV NEXTCLOUD_UPDATE=1 +CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..86f1b72 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Nextcloud Docker image with cron +This is taken straight from the documentation here: +https://github.com/nextcloud/docker/tree/master/.examples/dockerfiles/cron/apache diff --git a/supervisord.conf b/supervisord.conf new file mode 100644 index 0000000..40757b2 --- /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:apache2] +stdout_logfile=/dev/stdout +stdout_logfile_maxbytes=0 +stderr_logfile=/dev/stderr +stderr_logfile_maxbytes=0 +command=apache2-foreground + +[program:cron] +stdout_logfile=/dev/stdout +stdout_logfile_maxbytes=0 +stderr_logfile=/dev/stderr +stderr_logfile_maxbytes=0 +command=/cron.sh \ No newline at end of file