diff --git a/docker-compose.yml b/docker-compose.yml index 9062006..eebae43 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -76,33 +76,6 @@ services: - ./scripts/pb-init.sh:/pb-init.sh:ro entrypoint: ["sh", "/pb-init.sh"] - # ─── Browserless ──────────────────────────────────────────────────────────── - browserless: - image: ghcr.io/browserless/chromium:latest - #container_name: libnovel-browserless - restart: unless-stopped - environment: - # Set a token to lock down the endpoint; the scraper reads it via - # BROWSERLESS_TOKEN below. - TOKEN: "${BROWSERLESS_TOKEN:-}" - # Allow up to 10 concurrent browser sessions. - CONCURRENT: "${BROWSERLESS_CONCURRENT:-10}" - # Queue up to 100 requests before returning 429. - QUEUED: "${BROWSERLESS_QUEUED:-100}" - # Per-session timeout in ms. - TIMEOUT: "${BROWSERLESS_TIMEOUT:-60000}" - # Optional webhook URL for Browserless error alerts. - ERROR_ALERT_URL: "${ERROR_ALERT_URL:-}" - ports: - - "${BROWSERLESS_PORT:-3030}:3000" - # Shared memory is required for Chrome. - shm_size: "2gb" - healthcheck: - test: ["CMD", "wget", "-qO-", "http://localhost:3000/json/version"] - interval: 10s - timeout: 5s - retries: 5 - # ─── Scraper ───────────────────────────────────────────────────────────────── scraper: build: @@ -118,11 +91,6 @@ services: minio: condition: service_healthy environment: - BROWSERLESS_URL: "http://browserless:3000" - BROWSERLESS_TOKEN: "${BROWSERLESS_TOKEN:-}" - # content | scrape | cdp | direct — used for catalogue, metadata, ranking. - # Chapter list and chapter text always use direct HTTP regardless of this setting. - BROWSERLESS_STRATEGY: "${BROWSERLESS_STRATEGY:-direct}" # 0 → defaults to NumCPU inside the container. SCRAPER_WORKERS: "${SCRAPER_WORKERS:-0}" SCRAPER_HTTP_ADDR: ":8080"