ChangeDetection.io & Playwright Configuration with Docker Compose

I had some trouble getting this working and wanted to share the full config that worked for me, in case it helps someone in the future.

I found changedetection.io docs to be a bit difficult to make sense of, and the LSIO image just points to those docs.

Anyway, this in the docker-compose got it up and running:

  changedetection.io:
    image: lscr.io/linuxserver/changedetection.io:latest
    container_name: changedetection
    environment:
      - PUID=1010
      - PGID=1010
      - TZ=America/New_York
      - BASE_URL= https://changedetection.server.io/
      - PLAYWRIGHT_DRIVER_URL=ws://playwright-chrome:3000
    volumes:
      - /appdata/changedetection/config:/config
    restart: unless-stopped
  playwright-chrome:
      hostname: playwright-chrome
      image: dgtlmoon/sockpuppetbrowser:latest
      restart: unless-stopped
      tmpfs:
        - /tmp    # This just keeps tmp data from being written to disk
      environment:
          - SCREEN_WIDTH=1920
          - SCREEN_HEIGHT=1024
          - SCREEN_DEPTH=16
          - MAX_CONCURRENT_CHROME_PROCESSES=10
          - STATS_REFRESH_SECONDS=120 # Default is 3 seconds which is way too much

3 Likes

I’ve been struggling with getting this Docker container to work with the Playwright or Chrome drivers off and on for months now. Thank you for posting this!

One note: I added the lines below to the first container to make it easily accessible via URL.

    ports:
      - 5000:5000