feat(service): update Changedetection template (#5937)

This commit is contained in:
Alberto Rizzi
2025-06-18 13:23:06 +02:00
committed by GitHub
parent 9eab8897d8
commit 4dd3d6ff35

View File

@@ -7,37 +7,57 @@
services:
changedetection:
image: ghcr.io/dgtlmoon/changedetection.io
container_name: changedetection
hostname: changedetection
volumes:
- changedetection-data:/datastore
environment:
- SERVICE_FQDN_CHANGEDETECTION_5000
- PUID=1000
- PGID=1000
- BASE_URL=$SERVICE_FQDN_CHANGEDETECTION
- PLAYWRIGHT_DRIVER_URL=ws://playwright-chrome:3000/?stealth=1&--disable-web-security=true
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- BASE_URL=${BASE_URL:-$SERVICE_FQDN_CHANGEDETECTION}
- PLAYWRIGHT_DRIVER_URL=${PLAYWRIGHT_DRIVER_URL:-ws://browser-sockpuppet-chrome:3000}
# Hides the `Referer` header so that monitored websites can't see the changedetection.io hostname.
- HIDE_REFERER=true
- HIDE_REFERER=${HIDE_REFERER:-true}
# Default number of parallel/concurrent fetchers
- FETCH_WORKERS=${FETCH_WORKERS:-10}
# Absolute minimum seconds to recheck
- MINIMUM_SECONDS_RECHECK_TIME=${MINIMUM_SECONDS_RECHECK_TIME:-3}
# For complete privacy if you don't want to use the 'check version' / telemetry service
- DISABLE_VERSION_CHECK=${DISABLE_VERSION_CHECK:-true}
# Maximum height of screenshots
- SCREENSHOT_MAX_HEIGHT=${SCREENSHOT_MAX_HEIGHT:-16000}
# Timezone
- TZ=${TZ:-UTC}
# Log level
- LOGGER_LEVEL=${LOGGER_LEVEL:-DEBUG}
depends_on:
playwright-chrome:
browser-sockpuppet-chrome:
condition: service_started
restart: unless-stopped
healthcheck:
test: ["CMD", "echo", "ok"]
interval: 5s
timeout: 20s
retries: 10
playwright-chrome:
browser-sockpuppet-chrome:
hostname: browser-sockpuppet-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
cap_add:
- SYS_ADMIN
# SYS_ADMIN might be too much, but it can be needed on your platform
restart: unless-stopped
environment:
- SCREEN_WIDTH=1920
- SCREEN_HEIGHT=1024
- SCREEN_DEPTH=16
- MAX_CONCURRENT_CHROME_PROCESSES=10
- SCREEN_WIDTH=${SCREEN_WIDTH:-1920}
- SCREEN_HEIGHT=${SCREEN_HEIGHT:-1024}
- SCREEN_DEPTH=${SCREEN_DEPTH:-16}
- MAX_CONCURRENT_CHROME_PROCESSES=${MAX_CONCURRENT_CHROME_PROCESSES:-10}
healthcheck:
test: ["CMD", "echo", "ok"]
interval: 5s
timeout: 20s
retries: 10
volumes:
changedetection-data: