Created
December 22, 2020 19:39
-
-
Save saymowan/b17a7c23ddeba279c402e722d6750847 to your computer and use it in GitHub Desktop.
Docker Compose Selenium Grid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
hub: | |
image: selenium/hub | |
ports: | |
- "4444:4444" | |
environment: | |
GRID_MAX_SESSION: 16 | |
GRID_BROWSER_TIMEOUT: 3000 | |
GRID_TIMEOUT: 3000 | |
chrome: | |
image: selenium/node-chrome | |
container_name: web-automation_chrome | |
depends_on: | |
- hub | |
environment: | |
HUB_PORT_4444_TCP_ADDR: hub | |
HUB_PORT_4444_TCP_PORT: 4444 | |
NODE_MAX_SESSION: 4 | |
NODE_MAX_INSTANCES: 4 | |
volumes: | |
- /dev/shm:/dev/shm | |
ports: | |
- "9001:5900" | |
links: | |
- hub | |
firefox: | |
image: selenium/node-firefox | |
container_name: web-automation_firefox | |
depends_on: | |
- hub | |
environment: | |
HUB_PORT_4444_TCP_ADDR: hub | |
HUB_PORT_4444_TCP_PORT: 4444 | |
NODE_MAX_SESSION: 2 | |
NODE_MAX_INSTANCES: 2 | |
volumes: | |
- /dev/shm:/dev/shm | |
ports: | |
- "9002:5900" | |
links: | |
- hub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment