Skip to content

Commit c0109ca

Browse files
committed
Add cron support.
1 parent c81dc6d commit c0109ca

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
FROM nextcloud:18-fpm
22

33
RUN { echo 'listen = /sock/docker.sock'; } >> /usr/local/etc/php-fpm.d/zz-docker.conf
4+
5+
RUN apt-get update && apt-get install -y \
6+
supervisor \
7+
&& rm -rf /var/lib/apt/lists/* \
8+
&& mkdir /var/log/supervisord /var/run/supervisord
9+
10+
COPY supervisord.conf /
11+
12+
ENV NEXTCLOUD_UPDATE=1
13+
14+
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]

supervisord.conf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[supervisord]
2+
nodaemon=true
3+
logfile=/var/log/supervisord/supervisord.log
4+
pidfile=/var/run/supervisord/supervisord.pid
5+
childlogdir=/var/log/supervisord/
6+
logfile_maxbytes=50MB ; maximum size of logfile before rotation
7+
logfile_backups=10 ; number of backed up logfiles
8+
loglevel=error
9+
10+
[program:php-fpm]
11+
stdout_logfile=/dev/stdout
12+
stdout_logfile_maxbytes=0
13+
stderr_logfile=/dev/stderr
14+
stderr_logfile_maxbytes=0
15+
command=php-fpm
16+
17+
[program:cron]
18+
stdout_logfile=/dev/stdout
19+
stdout_logfile_maxbytes=0
20+
stderr_logfile=/dev/stderr
21+
stderr_logfile_maxbytes=0
22+
command=/cron.sh

0 commit comments

Comments
 (0)