Skip to content

Instantly share code, notes, and snippets.

@wcaquino
Created March 17, 2020 23:17
Show Gist options
  • Save wcaquino/1deb3610874e8944cf3e6820e3458b19 to your computer and use it in GitHub Desktop.
Save wcaquino/1deb3610874e8944cf3e6820e3458b19 to your computer and use it in GitHub Desktop.
Fragmento de docker-compose para adicionar um grid do selenium
selenium-hub:
image: selenium/hub:3.141.59-zinc
container_name: selenium-hub
networks:
- seleniumGrid
ports:
- "4444:4444"
chrome:
image: selenium/node-chrome:3.141.59-zinc
container_name: Chrome-1
networks:
- seleniumGrid
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
- NODE_MAX_INSTANCES=2
- NODE_MAX_SESSIONS=2
chrome2:
image: selenium/node-chrome:3.141.59-zinc
container_name: Chrome-2
networks:
- seleniumGrid
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
- NODE_MAX_INSTANCES=2
- NODE_MAX_SESSIONS=2
networks:
seleniumGrid:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment