-
-
Save benuski/f60c973424cb7c061ac103ea1a02ca96 to your computer and use it in GitHub Desktop.
version: '3.2' | |
services: | |
changedetection: | |
image: ghcr.io/dgtlmoon/changedetection.io:latest | |
container_name: changedetection | |
hostname: changedetection | |
volumes: | |
- changedetection-data:/datastore | |
environment: | |
- PORT=5000 | |
- PUID=1000 | |
- PGID=1000 | |
# Ensure this URL matches the name of the playwright service | |
- PLAYWRIGHT_DRIVER_URL=ws://playwright-chrome:3000/?headless=false | |
ports: | |
- 5000:5000 | |
restart: unless-stopped | |
depends_on: | |
- playwright-chrome | |
playwright-chrome: | |
hostname: playwright-chrome | |
image: ghcr.io/browserless/chrome | |
restart: unless-stopped | |
environment: | |
- SCREEN_WIDTH=1920 | |
- SCREEN_HEIGHT=1024 | |
- SCREEN_DEPTH=16 | |
- ENABLE_DEBUGGER=false | |
# Increased connection timeout to reduce chances of timeout errors | |
- TIMEOUT=600000 # Now 10 minutes | |
# Increased concurrent sessions for better parallel processing | |
- CONCURRENT=15 | |
volumes: | |
changedetection-data: |
Thank you for providing this docker compose file, it helped me get setup with browserless v2. One tweak, to handle v2.2.0+ of browserless. Source:
As of browserless v2.2.0, for the ghcr.io/browserless/chrome image, the /chrome endpoint must be added to the URL, so e.g.: PLAYWRIGHT_DRIVER_URL=ws://browserless-chrome:3000/chrome?launch={"headless":false}
Just wanted to say your message saved me so much headache as I was having connection errors in Change Detection for so long. Thank you so much for this.
Shame that I can't add an emoji to a gist but same here, super helpful (and the comments) thanks!
I'd love an example of how to leverage browserless.io's unblock as part of changedetection too
Hi. Thanks for this, does this not work for sites using javascript?
Upd: Here’s the docker-compose.yml I used. Works great. Most sites run without a proxy, only a few require one. No warnings or errors.
I also used a proxies.json as described in the manual here: https://github.com/dgtlmoon/changedetection.io/wiki/Proxy-configuration
Adjust the networks section to fit your setup. I use static Docker IPs, but you probably don’t need to.
Thank you for providing this docker compose file, it helped me get setup with browserless v2. One tweak, to handle v2.2.0+ of browserless. Source: