mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
healthcheck for scheduler and worker
This commit is contained in:
6
debian/docker-compose.yml
vendored
6
debian/docker-compose.yml
vendored
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user