Skip to content

Commit

Permalink
Add example of mupltiple nodes on same VM (#1485)
Browse files Browse the repository at this point in the history
Co-authored-by: Diego Molina <diemol@users.noreply.github.com>

[skip ci]
  • Loading branch information
Dan-DeAraujo committed Jan 30, 2022
1 parent 39aa34d commit 65ea5d2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ $ docker network rm grid

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

Hub - Machine/VM 1
``` bash
Expand Down Expand Up @@ -150,6 +151,18 @@ $ docker run -d -p 5555:5555 \
selenium/node-firefox:4.1.1-20220121
```

Node Chrome - Machine/VM 4
``` bash
$ docker run -d -p 5556:5556 \
--shm-size="2g" \
-e SE_EVENT_BUS_HOST=<ip-from-machine-1> \
-e SE_EVENT_BUS_PUBLISH_PORT=4442 \
-e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
-e SE_NODE_HOST=<ip-from-machine-4> \
-e SE_NODE_PORT=5556 \
selenium/node-chrome:4.1.1-20220121
```

#### Docker Compose
[Docker Compose](https://docs.docker.com/compose/) is the simplest way to start a Grid. Use the
linked resources below, save them locally, and check the execution instructions on top of each file.
Expand Down

0 comments on commit 65ea5d2

Please sign in to comment.