Skip to content

Commit 37060b4

Browse files
committed
Add docker file for running selenium grid locally
1 parent fa9dc2f commit 37060b4

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

selenium-grid.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# To execute this docker-compose yml file use `docker-compose -f docker-compose-v3.yml up`
2+
# Add the `-d` flag at the end for detached execution
3+
# To stop the execution, hit Ctrl+C, and then `docker-compose -f docker-compose-v3.yml down`
4+
version: "3"
5+
services:
6+
chrome:
7+
image: selenium/node-chrome:4.5.2-20221021
8+
shm_size: 2gb
9+
depends_on:
10+
- selenium-hub
11+
environment:
12+
- SE_EVENT_BUS_HOST=selenium-hub
13+
- SE_EVENT_BUS_PUBLISH_PORT=4442
14+
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
15+
16+
edge:
17+
image: selenium/node-edge:4.5.2-20221021
18+
shm_size: 2gb
19+
depends_on:
20+
- selenium-hub
21+
environment:
22+
- SE_EVENT_BUS_HOST=selenium-hub
23+
- SE_EVENT_BUS_PUBLISH_PORT=4442
24+
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
25+
26+
firefox:
27+
image: selenium/node-firefox:4.5.2-20221021
28+
shm_size: 2gb
29+
depends_on:
30+
- selenium-hub
31+
environment:
32+
- SE_EVENT_BUS_HOST=selenium-hub
33+
- SE_EVENT_BUS_PUBLISH_PORT=4442
34+
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
35+
36+
selenium-hub:
37+
image: selenium/hub:4.5.2-20221021
38+
container_name: selenium-hub
39+
ports:
40+
- "4442:4442"
41+
- "4443:4443"
42+
- "4444:4444"

0 commit comments

Comments
 (0)