Massprice/docker-compose.yml
Barely Removable 48d8bac332
All checks were successful
Deploy / deploy (push) Successful in 25s
Replace Chrome-remote-debugging login capture with a cookie-paste import flow
Live testing showed the CDP approach still fails hCaptcha even with a
real human clicking through chrome://inspect: the headless Chromium's
own fingerprint (HeadlessChrome user-agent, navigator.webdriver=true)
is what gets flagged, independent of who's driving it. Trying to
disguise that browser to get past bot detection would be captcha
evasion, not a session-handling technique, so that path is dropped
entirely rather than patched further.

New flow: log into MassPrice with an ordinary, non-automated browser
(hCaptcha passes normally), export the session's cookies with a
extension, and paste them into the Session page. import_cookies()
converts the export into Playwright's storage_state shape and verifies
it actually authenticates against the live site before saving it,
so a bad paste never clobbers a working session. This also removes the
now-unnecessary socat proxy / debug port exposure — Chromium's own
CDP port was only ever needed for the dropped approach.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H6TgffxTvYhqxykAbVQg2v
2026-08-31 20:10:51 -07:00

19 lines
659 B
YAML

services:
massprice:
build: .
container_name: massprice
# Headless Chromium's default /dev/shm (64MB) is too small in Docker
# and causes renderer crashes — this is the standard mitigation.
shm_size: "1gb"
ports:
- "${HOST_PORT:-5057}:5000"
volumes:
# Schedules, run history, the rule-name cache, and the saved
# MassPrice login session must outlive `up -d --build`, which
# recreates the container and discards its filesystem.
- ./data:/data
environment:
- LOGIN_PASSWORD=${LOGIN_PASSWORD}
- SECRET_KEY=${SECRET_KEY}
- TZ=${TZ:-America/New_York}
restart: unless-stopped