feat(docker): add cron service (aurblup + mkpkglists)

Normally, these scripts are used to update official providers
in the aurweb database along with archives that can be retrieved.

Run both of these scripts in a 5 minute cron job, to both reflect
the live instance database and production load.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-09 00:29:19 -08:00
parent 338a44839f
commit 4b8963b7ba
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
5 changed files with 43 additions and 1 deletions

View file

@ -144,6 +144,19 @@ services:
volumes:
- git_data:/aurweb/aur.git
cron:
image: aurweb:latest
init: true
environment:
- AUR_CONFIG=/aurweb/conf/config
entrypoint: /docker/cron-entrypoint.sh
command: /docker/scripts/run-cron.sh
depends_on:
mariadb_init:
condition: service_started
volumes:
- mariadb_run:/var/run/mysqld
php-fpm:
image: aurweb:latest
init: true
@ -163,6 +176,8 @@ services:
condition: service_healthy
memcached:
condition: service_healthy
cron:
condition: service_started
volumes:
- mariadb_run:/var/run/mysqld
ports:
@ -190,6 +205,8 @@ services:
condition: service_healthy
redis:
condition: service_healthy
cron:
condition: service_started
volumes:
- mariadb_run:/var/run/mysqld
ports: