mirror of
https://github.com/demostf/setup
synced 2026-06-04 00:54:07 +02:00
add archive job
This commit is contained in:
parent
45964e1450
commit
ace98aec28
1 changed files with 14 additions and 0 deletions
|
|
@ -93,6 +93,20 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- piwik-db-tier
|
- piwik-db-tier
|
||||||
- piwik-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:
|
networks:
|
||||||
proxy-tier:
|
proxy-tier:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue