fix(service): add healthcheck on cap-captcha.yaml

This commit is contained in:
ShadowArcanist 2026-04-23 01:07:14 +05:30 committed by GitHub
parent 716c741fff
commit e26d4e39e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,6 +12,12 @@ services:
- SERVICE_URL_CAP_3000
- ADMIN_KEY=$SERVICE_PASSWORD_ADMIN
- REDIS_URL=redis://valkey:6379
healthcheck:
test: ["CMD", "bun", "-e", "fetch('http://localhost:3000').then(r => { if (!r.ok) process.exit(1) }).catch(() => process.exit(1))"]
interval: 30s
timeout: 5s
retries: 3
start_period: 5s
depends_on:
valkey:
condition: service_healthy