-
Notifications
You must be signed in to change notification settings - Fork 1
Install Selenium and Firefox webdriver using docker & docker compose
Panagiotis Kapsalis edited this page Feb 12, 2020
·
1 revision
version: '3.7'
services:
selenium-hub:
image: selenium/hub
container_name: local-selenium-hub
ports:
- 4444:4444
environment:
- GRID_BROWSER_TIMEOUT=120000
- GRID_TIMEOUT=120000
- GRID_CLEAN_UP_CYCLE=60000
- GRID_MAX_SESSION=50
- GRID_MAX_INSTANCES=3
- JVM_OPTS=-Xmx10g
- GRID_JETTY_MAX_THREADS=1500
shm_size: 10g
firefox:
image: selenium/node-firefox:3.141
environment:
- HUB_PORT_4444_TCP_ADDR=local-selenium-hub
- HUB_PORT_4444_TCP_PORT=4444
- NODE_BROWSER_NAME=chrome
- NODE_MAX_INSTANCES=500
- NODE_MAX_SESSION=500
- NODE_SELENIUM_PROTOCOL=WebDriver
- JVM_OPTS=-Xmx24g
ports:
- 5900
depends_on:
- selenium-hub
volumes:
- /dev/shm:/dev/shm --privileged