Compare commits

...

2 Commits

Author SHA1 Message Date
90079376a3 Add my-docker-compose.yml
Some checks failed
Build and push containers / metadata (push) Has been cancelled
Build and push containers / build-push-containers (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Test the built 📦 package works basically. (push) Has been cancelled
Publish Python 🐍distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been cancelled
ChangeDetection.io App Test / lint-code (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-10 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-11 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-12 (push) Has been cancelled
ChangeDetection.io App Test / test-application-3-13 (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Creation
2025-05-20 19:05:18 -04:00
Spacetech
fcd6ebe0ee Use logger.debug for playwright console logs (#3201) 2025-05-18 13:26:50 +02:00
2 changed files with 44 additions and 1 deletions

View File

@@ -186,7 +186,7 @@ class fetcher(Fetcher):
self.page = context.new_page()
# Listen for all console events and handle errors
self.page.on("console", lambda msg: print(f"Playwright console: Watch URL: {url} {msg.type}: {msg.text} {msg.args}"))
self.page.on("console", lambda msg: logger.debug(f"Playwright console: Watch URL: {url} {msg.type}: {msg.text} {msg.args}"))
# Re-use as much code from browser steps as possible so its the same
from changedetectionio.blueprint.browser_steps.browser_steps import steppable_browser_interface

43
my-docker-compose.yml Normal file
View File

@@ -0,0 +1,43 @@
services:
changedetection:
image: ghcr.io/dgtlmoon/changedetection.io:latest
container_name: changedetection
hostname: changedetection
volumes:
- /opt/changedetection:/datastore
ports:
- 5000:5000
environment:
# - WEBDRIVER_URL=http://playwright-chrome:4444/wd/hub
- PLAYWRIGHT_DRIVER_URL=ws://playwright-chrome:3000
# - BASE_URL=https://mysite.com # configure this for your own domain
depends_on:
playwright-chrome:
condition: service_started
restart: unless-stopped
# browser-chrome:
# hostname: browser-chrome
# image: selenium/standalone-chrome:125.0
# shm_size: '2gb'
# # volumes:
# # # Workaround to avoid the browser crashing inside a docker container
# # # See https://github.com/SeleniumHQ/docker-selenium#quick-start
# # - /dev/shm:/dev/shm
# restart: unless-stopped
playwright-chrome:
hostname: playwright-chrome
image: browserless/chrome
restart: unless-stopped
environment:
- SCREEN_WIDTH=1920
- SCREEN_HEIGHT=1024
- SCREEN_DEPTH=16
- ENABLE_DEBUGGER=false
- PREBOOT_CHROME=true
- CONNECTION_TIMEOUT=300000
- MAX_CONCURRENT_SESSIONS=10
- CHROME_REFRESH_TIME=600000
- DEFAULT_BLOCK_ADS=true
- DEFAULT_STEALTH=true
- DEFAULT_IGNORE_HTTPS_ERRORS=true