Raspberry-Pi-IaC/roles/changedetection/templates/docker-compose.yaml.j2
2024-11-21 21:52:36 +01:00

30 lines
908 B
Django/Jinja

---
services:
changedetection-server:
image: "docker.io/dgtlmoon/changedetection.io:{{ changedetection_version }}"
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:{{ browserless_chrome_version }}"
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: