Skip to content

Commit

Permalink
healthcheck for scheduler and worker
Browse files Browse the repository at this point in the history
  • Loading branch information
benbrummer committed Jan 9, 2025
1 parent 57724b7 commit dfc3925
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions debian/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ services:
environment:
LARAVEL_ROLE: worker
<<: *volumes
healthcheck:
test: ["CMD", "pgrep", "-f", "queue:work"]
start_period: 10s
depends_on:
app:
condition: service_healthy
Expand All @@ -74,6 +77,9 @@ services:
environment:
LARAVEL_ROLE: scheduler
<<: *volumes
healthcheck:
test: ["CMD", "pgrep", "-f", "schedule:work"]
start_period: 10s
depends_on:
app:
condition: service_healthy
Expand Down

0 comments on commit dfc3925

Please sign in to comment.