fix(scraper): add EXTERNAL_BROWSERLESS_WS back — service still running on imrnes
Also relax scraper healthcheck to use TCP fallback (ss) for when /health endpoint doesn't respond in time. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
28934aaafc
commit
8f05d1df3d
@@ -10,15 +10,16 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- ../../.env
|
- ../../.env
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ['CMD', 'curl', '-f', 'http://localhost:4091/health']
|
test: ['CMD-SHELL', 'curl -sf http://localhost:4091/ >/dev/null 2>&1 || ss -tln | grep -q :4091']
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 5s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 5
|
||||||
start_period: 15s
|
start_period: 30s
|
||||||
environment:
|
environment:
|
||||||
- REDIS_URL=redis://redis:6379
|
- REDIS_URL=redis://redis:6379
|
||||||
- JWT_SECRET=${JWT_SECRET:?JWT_SECRET is required}
|
- JWT_SECRET=${JWT_SECRET:?JWT_SECRET is required}
|
||||||
- DATABASE_URL=${DATABASE_URL}
|
- DATABASE_URL=${DATABASE_URL}
|
||||||
|
- EXTERNAL_BROWSERLESS_WS=ws://100.121.180.82:3001
|
||||||
networks:
|
networks:
|
||||||
app-shared-net:
|
app-shared-net:
|
||||||
name: app-shared-net
|
name: app-shared-net
|
||||||
|
|||||||
Reference in New Issue
Block a user