mirror of
https://github.com/coollabsio/coolify.git
synced 2026-06-14 03:19:51 +00:00
fix(service): add healthcheck on cap-captcha.yaml
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user