feat(cron): add cron to container
cron is installed with supervisor managing the process !1
This commit is contained in:
@ -67,6 +67,7 @@ RUN apt update; \
|
||||
php7.4-bz2 \
|
||||
php7.4-redis \
|
||||
\
|
||||
cron \
|
||||
supervisor \
|
||||
ca-certificates; \
|
||||
rm -rf /var/lib/apt/lists/*; \
|
||||
|
8
includes/etc/supervisor/conf.d/cron.conf
Normal file
8
includes/etc/supervisor/conf.d/cron.conf
Normal file
@ -0,0 +1,8 @@
|
||||
[program:cron]
|
||||
startsecs=0
|
||||
stopwaitsecs=55
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
||||
stderr_logfile=/var/log/supervisor/%(program_name)s.log
|
||||
command=/usr/sbin/cron -f
|
Reference in New Issue
Block a user