feat(ops): add a scheduler service (schedule:work) — runs wg-sample + prune-audit
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>feat/v1-foundation
parent
49f70c0c9f
commit
e1fb24203d
|
|
@ -71,6 +71,16 @@ services:
|
||||||
redis:
|
redis:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
|
|
||||||
|
# Runs the Laravel scheduler loop (every-minute clusev:wg-sample, daily clusev:prune-audit).
|
||||||
|
scheduler:
|
||||||
|
<<: *image
|
||||||
|
command: php artisan schedule:work
|
||||||
|
depends_on:
|
||||||
|
mariadb:
|
||||||
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_started
|
||||||
|
|
||||||
caddy:
|
caddy:
|
||||||
image: caddy:2-alpine # pin by @sha256 digest before the first prod push
|
image: caddy:2-alpine # pin by @sha256 digest before the first prod push
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,17 @@ services:
|
||||||
redis:
|
redis:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
|
|
||||||
|
# Laravel scheduler loop (every-minute clusev:wg-sample, daily clusev:prune-audit).
|
||||||
|
scheduler:
|
||||||
|
<<: *app
|
||||||
|
user: "${HOST_UID:-1002}:${HOST_GID:-1002}"
|
||||||
|
command: php artisan schedule:work
|
||||||
|
depends_on:
|
||||||
|
mariadb:
|
||||||
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_started
|
||||||
|
|
||||||
mariadb:
|
mariadb:
|
||||||
image: mariadb:11
|
image: mariadb:11
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue