Skip to content
dgtlmoon edited this page Jan 17, 2024 · 1 revision

A recommended docker-compose.yml for Synology NAS

version: "3.9"
services:
  changedetection:
    container_name: ChangeDetection
    image: dgtlmoon/changedetection.io
    mem_limit: 1g
    cpu_shares: 768
    security_opt:
      - no-new-privileges:true
    restart: on-failure:5
    ports:
      - 5054:5000
    volumes:
      - /volume1/docker/changedetection:/datastore:rw
    environment:
     - PLAYWRIGHT_DRIVER_URL=ws://playwright-chrome:3000/
  playwright-chrome:
    hostname: playwright-chrome
    image: browserless/chrome:1.60-chrome-stable
    restart: on-failure:5
    mem_limit: 4g
    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
    - DEFAULT_IGNORE_HTTPS_ERRORS=true