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
boban 2026-06-21 00:05:14 +02:00
parent 49f70c0c9f
commit e1fb24203d
2 changed files with 21 additions and 0 deletions

View File

@ -71,6 +71,16 @@ services:
redis:
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:
image: caddy:2-alpine # pin by @sha256 digest before the first prod push
restart: unless-stopped

View File

@ -51,6 +51,17 @@ services:
redis:
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:
image: mariadb:11
restart: unless-stopped