diff --git a/changedetection/docker-compose.yml b/changedetection/docker-compose.yml index 8b1925c..16c68f8 100644 --- a/changedetection/docker-compose.yml +++ b/changedetection/docker-compose.yml @@ -10,7 +10,7 @@ services: - PGID=1000 - TZ=Europe/Copenhagen - BASE_URL=https://change.knast.cc - - WEBDRIVER_URL=http://selenium:4444/wd/hub + - WEBDRIVER_URL=http://browser-chrome:4444/wd/hub volumes: - /srv/changedetection/config:/config ports: @@ -24,6 +24,16 @@ services: - "traefik.http.routers.changedetection.rule=Host(`change.knast.cc`)" - "traefik.http.routers.changedetection.tls.certresolver=letsencr" - "traefik.http.services.changedetection.loadbalancer.server.port=5000" + depends_on: + - browser-chrome + browser-chrome: + hostname: browser-chrome + image: selenium/standalone-chrome:4.1.2-20220217 + container_name: browser-chrome + volumes: + # Fixes potential memory issues in Chrome + - /dev/shm:/dev/shm + restart: unless-stopped # selenium: # image: selenium/standalone-chrome:latest # container_name: selenium