fix: 避免生产健康检查触发防火墙
This commit is contained in:
parent
c7ac541334
commit
03a12f7caa
@ -106,7 +106,9 @@ services:
|
||||
healthcheck:
|
||||
test:
|
||||
- "CMD-SHELL"
|
||||
- "runuser -u www-data -- php artisan app:ready --quiet && curl -fsS -o /dev/null http://127.0.0.1:18088/"
|
||||
# app:ready 验证 Laravel 与数据库;静态资源探针验证 Apache。
|
||||
# 不请求动态页面,避免健康检查被应用防火墙按高频访问误拦截。
|
||||
- "runuser -u www-data -- php artisan app:ready --quiet && curl -fsS -o /dev/null http://127.0.0.1:18088/serviceworker.js"
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user