Root Commit

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-07-08 14:45:09 +00:00
commit 9dc3c98587
5 changed files with 36 additions and 0 deletions

5
Dockerfile Normal file
View file

@ -0,0 +1,5 @@
FROM matomo
RUN rm /var/log/apache2/access.log && mkdir /var/log/supervisord /var/run/supervisord
RUN ln -s /dev/null /var/log/apache2/access.log

3
archive-cron.sh Normal file
View file

@ -0,0 +1,3 @@
#! /bin/bash
docker exec --user www-data matomo /usr/local/bin/php /var/www/html/console core:archive --url=https://counter.baalajimaestro.me/

3
crontab-file Normal file
View file

@ -0,0 +1,3 @@
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/bin/php /var/www/html/console core:archive --url="https://counter.baalajimaestro.me/"
0,20,40 * * * * /usr/local/bin/php /var/www/html/console "scheduled-tasks:run"

3
schedule-cron.sh Normal file
View file

@ -0,0 +1,3 @@
#! /bin/bash
docker exec --user www-data matomo /usr/local/bin/php /var/www/html/console scheduled-tasks:run

22
supervisord.conf Normal file
View file

@ -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:apache]
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 -f