Raspberry-Pi-IaC/roles/changedetection/templates/docker-compose.yaml.j2
2024-12-30 11:26:27 +01:00

30 lines
928 B
Django/Jinja

---
services:
changedetection-server:
image: "docker.io/dgtlmoon/changedetection.io:{{ versions.changedetection.self }}"
hostname: changedetection
restart: always
ports:
- "127.0.0.1:5000:5000/tcp"
volumes:
- "changedetection_data:/datastore"
environment:
- PLAYWRIGHT_DRIVER_URL=ws://browserless-chrome:3000
# See configuration from: https://www.youtube.com/watch?v=o_iG4Wunh98
browserless-chrome:
image: "browserless/chrome:{{ versions.changedetection.headless_chrome }}"
hostname: browserless-chrome
restart: always
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
volumes:
changedetection_data: