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:
asepharyana
2026-07-21 15:32:25 +07:00
co-authored by Claude Opus 4.8
parent 28934aaafc
commit 8f05d1df3d
+5 -4
View File
@@ -10,15 +10,16 @@ services:
env_file:
- ../../.env
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
timeout: 5s
retries: 3
start_period: 15s
timeout: 10s
retries: 5
start_period: 30s
environment:
- REDIS_URL=redis://redis:6379
- JWT_SECRET=${JWT_SECRET:?JWT_SECRET is required}
- DATABASE_URL=${DATABASE_URL}
- EXTERNAL_BROWSERLESS_WS=ws://100.121.180.82:3001
networks:
app-shared-net:
name: app-shared-net