diff --git a/Dockerfile b/Dockerfile index 00d6684..c104591 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,6 @@ RUN apt-get update &&\ mkdir /var/log/supervisord /var/run/supervisord COPY supervisord.conf / -COPY apache2.conf /etc/apache2/ ENV NEXTCLOUD_UPDATE=1 diff --git a/supervisord.conf b/supervisord.conf new file mode 100644 index 0000000..be55e95 --- /dev/null +++ b/supervisord.conf @@ -0,0 +1,23 @@ + +[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