-
Notifications
You must be signed in to change notification settings - Fork 43
/
docker-compose.yml
54 lines (52 loc) · 1.24 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
version: "3.4"
services:
selenium-hub:
image: selenium/hub:${SELENIUM_VERSION}
ports:
- "4444:4444"
healthcheck:
test: ["CMD", "/opt/bin/check-grid.sh", "--host", "0.0.0.0", "--port", "4444"]
interval: 15s
timeout: 15s
retries: 3
start_period: 30s
chrome:
image: selenium/node-chrome:${SELENIUM_VERSION}
volumes:
- /dev/shm:/dev/shm
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
- START_XVFB=false
ports:
- "5555:5555"
healthcheck:
test: ["CMD", "/opt/bin/check-grid.sh", "--host", "0.0.0.0", "--port", "5555"]
interval: 15s
timeout: 15s
retries: 3
start_period: 30s
depends_on:
- selenium-hub
firefox:
image: selenium/node-firefox:${SELENIUM_VERSION}
volumes:
- /dev/shm:/dev/shm
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
- START_XVFB=false
ports:
- "5556:5555"
healthcheck:
test: ["CMD", "/opt/bin/check-grid.sh", "--host", "0.0.0.0", "--port", "5555"]
interval: 15s
timeout: 15s
retries: 3
start_period: 30s
depends_on:
- selenium-hub