fix(service): add healthcheck on cap-captcha.yaml
This commit is contained in:
parent
716c741fff
commit
e26d4e39e6
1 changed files with 6 additions and 0 deletions
|
|
@ -12,6 +12,12 @@ services:
|
||||||
- SERVICE_URL_CAP_3000
|
- SERVICE_URL_CAP_3000
|
||||||
- ADMIN_KEY=$SERVICE_PASSWORD_ADMIN
|
- ADMIN_KEY=$SERVICE_PASSWORD_ADMIN
|
||||||
- REDIS_URL=redis://valkey:6379
|
- 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:
|
depends_on:
|
||||||
valkey:
|
valkey:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue