-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (53 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
57 lines (53 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3.8'
networks:
grid:
driver: overlay
services:
hub:
image: selenium/hub:3.141.59
environment:
- GRID_TIMEOUT=100
ports:
- 4444:4444
networks:
- grid
deploy:
mode: replicated
replicas: 1
labels:
selenium.grid.type: "hub"
selenium.grid.hub: "true"
restart_policy:
condition: none
placement:
constraints:
- node.role == manager
chrome:
image: selenium/node-chrome:3.141.59
volumes:
- /dev/urandom:/dev/random
- /dev/shm:/dev/shm
depends_on:
- hub
networks:
- grid
environment:
- HUB_PORT_4444_TCP_ADDR=hub
- HUB_PORT_4444_TCP_PORT=4444
- NODE_MAX_SESSION=3
- NODE_MAX_INSTANCES=3
- GRID_TIMEOUT=180
- SCREEN_WIDTH=1920
- SCREEN_HEIGHT=1080
entrypoint: bash -c 'SE_OPTS="-host $$HOSTNAME" /opt/bin/entry_point.sh'
deploy:
replicas: 8
labels:
selenium.grid.type: "node"
selenium.grid.node: "true"
selenium.grid.node.type: "chrome"
restart_policy:
condition: none
placement:
constraints:
- node.role == worker