mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:15 +02:00
add selenium-grid
This commit is contained in:
parent
b4c346431a
commit
fc5f764eab
20
selenium/grid/docker-compose-hub.yml
Normal file
20
selenium/grid/docker-compose-hub.yml
Normal file
@ -0,0 +1,20 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
|
||||
selenium-hub:
|
||||
image: selenium/hub:3.141.59-neon
|
||||
ports:
|
||||
- "4444:4444"
|
||||
volumes:
|
||||
- /dev/shm:/dev/shm
|
||||
environment:
|
||||
- JAVA_OPTS=-Xmx512m
|
||||
- GRID_TIMEOUT=60
|
||||
- GRID_BROWSER_TIMEOUT=30
|
||||
healthcheck:
|
||||
test: ["CMD", "/opt/bin/check-grid.sh", "--host", "127.0.0.1", "--port", "4444"]
|
||||
interval: 15s
|
||||
timeout: 30s
|
||||
retries: 5
|
||||
restart: unless-stopped
|
13
selenium/grid/docker-compose-node.yml
Normal file
13
selenium/grid/docker-compose-node.yml
Normal file
@ -0,0 +1,13 @@
|
||||
chrome:
|
||||
image: selenium/node-chrome:3.141.59-neon
|
||||
ports:
|
||||
- "5555:5555"
|
||||
volumes:
|
||||
- /dev/shm:/dev/shm
|
||||
environment:
|
||||
- HUB_HOST=10.0.0.21
|
||||
- HUB_PORT=4444
|
||||
- REMOTE_HOST=http://10.0.0.22:5555
|
||||
- NODE_MAX_INSTANCES=2
|
||||
- NODE_MAX_SESSION=2
|
||||
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user