1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/selenium/docker-stack.yml

46 lines
946 B
YAML
Raw Normal View History

2019-06-26 23:15:23 +02:00
version: '3.5'
services:
hub:
image: selenium/hub:3.141.59-radium
ports:
- "4444:4444"
volumes:
- /dev/shm:/dev/shm
environment:
- JAVA_OPTS=-Xmx512m
- GRID_TIMEOUT=60
- GRID_BROWSER_TIMEOUT=30
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
restart_policy:
condition: on-failure
chrome:
image: selenium/node-chrome:3.141.59-radium
ports:
- "5555:5555"
volumes:
- /dev/shm:/dev/shm
environment:
- HUB_HOST=hub
- HUB_PORT=4444
- REMOTE_HOST=http://{{.Task.Name}}:5555
- NODE_MAX_INSTANCES=4
- NODE_MAX_SESSION=4
depends_on:
- hub
deploy:
replicas: 8
placement:
constraints:
- node.role == worker
restart_policy:
condition: on-failure
networks:
default:
ipam:
config:
- subnet: 192.168.127.0/24