|
|
@@ -30,6 +30,13 @@ services:
|
|
|
- ./storage:/app/storage
|
|
|
- ./.env:/app/.env
|
|
|
restart: unless-stopped
|
|
|
+ # 队列 worker 健康检查:检查进程是否存在
|
|
|
+ healthcheck:
|
|
|
+ test: ["CMD-SHELL", "pgrep -f 'queue:work' || exit 1"]
|
|
|
+ interval: 30s
|
|
|
+ timeout: 10s
|
|
|
+ retries: 3
|
|
|
+ start_period: 10s
|
|
|
deploy:
|
|
|
resources:
|
|
|
limits:
|
|
|
@@ -47,6 +54,13 @@ services:
|
|
|
- ./storage:/app/storage
|
|
|
- ./.env:/app/.env
|
|
|
restart: unless-stopped
|
|
|
+ # PDF worker 健康检查:检查进程是否存在
|
|
|
+ healthcheck:
|
|
|
+ test: ["CMD-SHELL", "pgrep -f 'queue:work' || exit 1"]
|
|
|
+ interval: 30s
|
|
|
+ timeout: 10s
|
|
|
+ retries: 3
|
|
|
+ start_period: 10s
|
|
|
deploy:
|
|
|
resources:
|
|
|
limits:
|