diff --git a/templates/compose/changedetection.yaml b/templates/compose/changedetection.yaml new file mode 100644 index 000000000..91704e7f1 --- /dev/null +++ b/templates/compose/changedetection.yaml @@ -0,0 +1,34 @@ +# documentation: https://github.com/dgtlmoon/changedetection.io/ +# slogan: Website change detection monitor and notifications +# tags: web, alert, monitor + +services: + changedetection: + image: ghcr.io/dgtlmoon/changedetection.io + container_name: changedetection + hostname: changedetection + volumes: + - changedetection-data:/datastore + environment: + - SERVICE_FQDN_CHANGEDETECTION + - PUID=1000 + - PGID=1000 + - BASE_URL=$SERVICE_FQDN_CHANGEDETECTION + - PLAYWRIGHT_DRIVER_URL=ws://playwright-chrome:3000/?stealth=1&--disable-web-security=true + # Hides the `Referer` header so that monitored websites can't see the changedetection.io hostname. + - HIDE_REFERER=true + depends_on: + playwright-chrome: + condition: service_started + playwright-chrome: + hostname: playwright-chrome + image: dgtlmoon/sockpuppetbrowser:latest + # cap_add: + # - SYS_ADMIN + # SYS_ADMIN might be too much, but it can be needed on your platform https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#running-puppeteer-on-gitlabci + restart: unless-stopped + environment: + - SCREEN_WIDTH=1920 + - SCREEN_HEIGHT=1024 + - SCREEN_DEPTH=16 + - MAX_CONCURRENT_CHROME_PROCESSES=10