mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
338a44839f
commit
4b8963b7ba
5 changed files with 43 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue