1
0
Fork 0

add supervisord
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Massaki Archambault 2021-08-28 19:50:44 -04:00
parent 91cc9ffff8
commit 8c050fe8af
2 changed files with 31 additions and 4 deletions

View File

@ -1,8 +1,12 @@
FROM nextcloud:22.1.0 FROM nextcloud:22.1.0-apache
COPY httpd/000-default.conf /etc/apache2/sites-available/000-default.conf COPY httpd/000-default.conf /etc/apache2/sites-available/000-default.conf
COPY supervisord/supervisord.conf /opt/supervisord.conf
# install cron # install cron
RUN apt-get update && \ RUN apt-get update \
apt-get install -y cron libmagickcore-6.q16-6-extra && \ && apt-get install -y supervisor libmagickcore-6.q16-6-extra \
rm -rf /var/lib/apt/lists/* && mkdir /var/log/supervisord /var/run/supervisord \
&& rm -rf /var/lib/apt/lists/*
CMD ["/usr/bin/supervisord", "-c", "/opt/supervisord.conf"]

View File

@ -0,0 +1,23 @@
[supervisord]
nodaemon=true
user=root
logfile=/var/log/supervisord/supervisord.log
pidfile=/var/run/supervisord/supervisord.pid
childlogdir=/var/log/supervisord/
logfile_maxbytes=50MB
logfile_backups=3
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