From abd98fa18460e7207a7b62b39b97b9fbef04a739 Mon Sep 17 00:00:00 2001 From: Alexander Kreitner <180843591+Gl4dr3x@users.noreply.github.com> Date: Tue, 27 Oct 2026 00:38:36 +0100 Subject: [PATCH] build(compose): move browserless to the v2 image and connect over CDP Run ghcr.io/browserless/chromium pinned to v2.57.3 instead of the v1 image browserless/chrome. v2 refuses connections without a token, so the service takes TOKEN from BROWSERLESS_TOKEN and rsshub passes it in PLAYWRIGHT_CDP_ENDPOINT, the variable the synced code reads. The healthcheck sends the token too. The real-browser service and PUPPETEER_REAL_BROWSER_SERVICE go away, since the synced code no longer reads it. Co-Authored-By: Claude Sonnet 5.5 --- docker-compose.custom.yml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/docker-compose.custom.yml b/docker-compose.custom.yml index 043b6eefb0b4..c3eacbca0a98 100644 --- a/docker-compose.custom.yml +++ b/docker-compose.custom.yml @@ -8,8 +8,9 @@ services: NODE_ENV: production CACHE_TYPE: redis REDIS_URL: 'redis://redis:6379/' - PUPPETEER_WS_ENDPOINT: 'ws://browserless:3000' - PUPPETEER_REAL_BROWSER_SERVICE: 'http://real-browser:3000' + # Endpoint format from upstream's docker-compose.yml (PLAYWRIGHT_CDP_ENDPOINT, read by lib/utils/playwright.ts). Needs the synced code from workoho/RSSHub#78. + # UNVERIFIED: ${BROWSERLESS_TOKEN:?} replaces upstream's default value; Coolify's handling of :? is from its docs, not a run. + PLAYWRIGHT_CDP_ENDPOINT: 'ws://browserless:3000?token=${BROWSERLESS_TOKEN:?}' healthcheck: test: ['CMD', 'curl', '-f', 'http://localhost:1200/healthz'] interval: 30s @@ -24,26 +25,18 @@ services: - traefik.http.middlewares.hyprrykhpm87vx88mwnlwrkt-rsshub.basicauth.users=${RSSHUB_BASIC_AUTH:?} - traefik.http.routers.http-0-hyprrykhpm87vx88mwnlwrkt-rsshub.middlewares=hyprrykhpm87vx88mwnlwrkt-rsshub - real-browser: - image: ghcr.io/hyoban/puppeteer-real-browser-hono - restart: always - expose: - - '3000' - healthcheck: - test: ['CMD', 'curl', '-f', 'http://localhost:3000'] - interval: 30s - timeout: 10s - retries: 3 - browserless: - image: browserless/chrome + # UNVERIFIED: the v2.57.3 tag exists on GHCR (checked via the registry API); no run on this image yet. Upstream leaves the tag unpinned. + image: ghcr.io/browserless/chromium:v2.57.3 restart: always + environment: + TOKEN: '${BROWSERLESS_TOKEN:?}' ulimits: core: hard: 0 soft: 0 healthcheck: - test: ['CMD', 'curl', '-f', 'http://localhost:3000/pressure'] + test: ['CMD-SHELL', 'curl -f "http://localhost:3000/pressure?token=$$TOKEN"'] interval: 30s timeout: 10s retries: 3