-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (62 loc) · 1.49 KB
/
docker-compose.yml
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
58
59
60
61
62
version: '3.7'
networks:
private:
driver: overlay
services:
hub:
image: selenium/hub
ports:
- "4444:4444"
volumes:
- /dev/shm:/dev/shm
environment:
GRID_BROWSER_TIMEOUT: 360000
GRID_TIMEOUT: 360000
GRID_CLEAN_UP_CYCLE: 600000
GRID_UNREGISTER_IF_STILL_DOWN_AFTER: 500000
GRID_NEW_SESSION_WAIT_TIMEOUT: 6000
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
chrome:
image: selenium/node-chrome-debug
entrypoint:
bash -c 'SE_OPTS="-host $$HOSTNAME -port 61000" /opt/bin/entry_point.sh'
ports:
- "61000:5900"
volumes:
- /dev/shm:/dev/shm
environment:
HUB_HOST: hub
HUB_PORT: 4444
NODE_MAX_INSTANCES: 5
NODE_MAX_SESSION: 5
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: none
placement:
constraints: [node.role == manager]
chromeBuddy:
image: selenium/node-chrome-debug
entrypoint:
bash -c 'SE_OPTS="-host $$HOSTNAME -port 61001" /opt/bin/entry_point.sh'
ports:
- "61001:5901"
volumes:
- /dev/shm:/dev/shm
environment:
HUB_HOST: hub
HUB_PORT: 4444
NODE_MAX_INSTANCES: 5
NODE_MAX_SESSION: 5
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: none
placement:
constraints: [node.role == manager]