Skip to content

Instantly share code, notes, and snippets.

@memoryleak
Created April 9, 2019 14:00
Show Gist options
  • Save memoryleak/9e6793e5b8bdef2610fd0510a6fe356a to your computer and use it in GitHub Desktop.
Save memoryleak/9e6793e5b8bdef2610fd0510a6fe356a to your computer and use it in GitHub Desktop.
---
version: '3.7'
services:
hub:
image: selenium/hub:3.141.59-mercury
ports:
- "4444:4444"
chrome:
image: selenium/node-chrome:3.141.59-mercury
volumes:
- /dev/shm:/dev/shm
environment:
HUB_HOST: hub
HUB_PORT: 4444
SCREEN_WIDTH: 2560
SCREEN_HEIGHT: 1440
SCREEN_DEPTH: 24
NODE_MAX_INSTANCES: 1
NODE_MAX_SESSION: 1
deploy:
replicas: 10
entrypoint: bash -c 'SE_OPTS="-host $$HOSTNAME" /opt/bin/entry_point.sh'
firefox:
image: selenium/node-firefox:3.141.59-mercury
volumes:
- /dev/shm:/dev/shm
environment:
HUB_HOST: hub
HUB_PORT: 4444
SCREEN_WIDTH: 2560
SCREEN_HEIGHT: 1440
SCREEN_DEPTH: 24
NODE_MAX_INSTANCES: 1
NODE_MAX_SESSION: 1
deploy:
replicas: 10
entrypoint: bash -c 'SE_OPTS="-host $$HOSTNAME" /opt/bin/entry_point.sh'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment