Files
asepharyana-hub/infra/compose/scraper.yml
T
asepharyanaandClaude Opus 4.8 8f05d1df3d 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>
2026-07-21 15:32:25 +07:00

27 lines
736 B
YAML

services:
scraper-api:
container_name: scraper-api
image: ghcr.io/asepharyana/asepharyana-hub/scraper-api:sha-c4ecf8f
restart: always
networks:
app-shared-net:
aliases:
- scraper-api
env_file:
- ../../.env
healthcheck:
test: ['CMD-SHELL', 'curl -sf http://localhost:4091/ >/dev/null 2>&1 || ss -tln | grep -q :4091']
interval: 30s
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
external: true