Skip to content

Commit 65ea5d2

Browse files
authored
Add example of mupltiple nodes on same VM (SeleniumHQ#1485)
Co-authored-by: Diego Molina <[email protected]> [skip ci]
1 parent 39aa34d commit 65ea5d2

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ $ docker network rm grid
110110

111111
#### Using different machines/VMs
112112
The Hub and Nodes will be created on different machines/VMs, they need to know each other's IPs to
113-
communicate properly.
113+
communicate properly. If more than one node will be running on the same Machine/VM, they must be
114+
configured to expose different ports.
114115

115116
Hub - Machine/VM 1
116117
``` bash
@@ -150,6 +151,18 @@ $ docker run -d -p 5555:5555 \
150151
selenium/node-firefox:4.1.1-20220121
151152
```
152153

154+
Node Chrome - Machine/VM 4
155+
``` bash
156+
$ docker run -d -p 5556:5556 \
157+
--shm-size="2g" \
158+
-e SE_EVENT_BUS_HOST=<ip-from-machine-1> \
159+
-e SE_EVENT_BUS_PUBLISH_PORT=4442 \
160+
-e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
161+
-e SE_NODE_HOST=<ip-from-machine-4> \
162+
-e SE_NODE_PORT=5556 \
163+
selenium/node-chrome:4.1.1-20220121
164+
```
165+
153166
#### Docker Compose
154167
[Docker Compose](https://docs.docker.com/compose/) is the simplest way to start a Grid. Use the
155168
linked resources below, save them locally, and check the execution instructions on top of each file.

0 commit comments

Comments
 (0)