1
0
Fork 0
mirror of https://github.com/demostf/setup synced 2026-06-04 00:54:07 +02:00

add archive job

This commit is contained in:
Robin Appelman 2017-09-22 03:23:24 +02:00
commit ace98aec28

View file

@ -93,6 +93,20 @@ services:
networks:
- piwik-db-tier
- piwik-tier
cron:
image: piwik:fpm
links:
- db
volumes_from:
- app
entrypoint: |
bash -c 'bash -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM
while /bin/true; do
su -s "/bin/bash" -c "/usr/local/bin/php /var/www/html/console core:archive" www-data
sleep 3600
done
EOF'
networks:
proxy-tier: