Skip to content

Instantly share code, notes, and snippets.

@bgulla
Created September 7, 2022 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bgulla/177181708a9895c8abc6eb9fda7dc184 to your computer and use it in GitHub Desktop.
Save bgulla/177181708a9895c8abc6eb9fda7dc184 to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir -p /opt/docker/{data,config,dockerfiles}
CONTAINER_NAME="changedetectionio"
DATA_DIR=/opt/docker/data/${CONTAINER_NAME}
docker rm --force selenium changedetectionio playwright-chrome
docker run -d \
--name selenium \
--restart unless-stopped \
-p 4444:4444 \
--shm-size="2g" \
selenium/standalone-chrome-debug:3.141.59
docker run -d \
--name playwright-chrome \
-p 3000:3000 \
-t browserless/chrome
docker run -d \
--name ${CONTAINER_NAME} \
--restart unless-stopped \
--link selenium \
--link playwright-chrome \
-p 5000:5000 \
-e WEBDRIVER_URL="http://selenium:4444/wd/hub" \
-e "PLAYWRIGHT_DRIVER_URL=ws://playwright-chrome:3000/?stealth=1&--disable-web-security=true" \
-v ${DATA_DIR}/datastore \
dgtlmoon/changedetection.io
docker logs -f playwright-chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment