@@ -110,6 +110,48 @@ When you are done using the Grid, and the containers have exited, the network ca
110110$ docker network rm grid
111111```
112112
113+ ### Using different machines/VMs
114+ The Hub and Nodes will be created on different machines/VMs, they need to know each other's IPs to
115+ communicate properly.
116+
117+ Hub - Machine/VM 1
118+ ``` bash
119+ $ docker run -d -p 4442-4444:4442-4444 --name selenium-hub selenium/hub:4.0.0-prerelease-beta-1-prerelease-20201127
120+ ```
121+
122+ Node Chrome - Machine/VM 2
123+ ``` bash
124+ $ docker run -d -p 5555:5555
125+ -e SE_EVENT_BUS_HOST=< ip-from-machine-1> \
126+ -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
127+ -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
128+ -e SE_NODE_HOST=< ip-from-machine-2> \
129+ -v /dev/shm:/dev/shm \
130+ selenium/node-chrome:4.0.0-prerelease-beta-1-prerelease-20201127
131+ ```
132+
133+ Node Firefox - Machine/VM 3
134+ ``` bash
135+ $ docker run -d -p 5555:5555
136+ -e SE_EVENT_BUS_HOST=< ip-from-machine-1> \
137+ -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
138+ -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
139+ -e SE_NODE_HOST=< ip-from-machine-3> \
140+ -v /dev/shm:/dev/shm \
141+ selenium/node-firefox:4.0.0-prerelease-beta-1-prerelease-20201127
142+ ```
143+
144+ Node Opera - Machine/VM 4
145+ ``` bash
146+ $ docker run -d -p 5555:5555
147+ -e SE_EVENT_BUS_HOST=< ip-from-machine-1> \
148+ -e SE_EVENT_BUS_PUBLISH_PORT=4442 \
149+ -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \
150+ -e SE_NODE_HOST=< ip-from-machine-4> \
151+ -v /dev/shm:/dev/shm \
152+ selenium/node-opera:4.0.0-prerelease-beta-1-prerelease-20201127
153+ ```
154+
113155### Docker Compose
114156[ Docker Compose] ( https://docs.docker.com/compose/ ) is the simplest way to start a Grid. Use the
115157linked resources below, save them locally, and check the execution instructions on top of each file.
@@ -216,6 +258,12 @@ assets-path = "/assets/path/on/your/host/machine"
216258# "/opt/selenium/assets" already exists inside the containers
217259# If you want to use another one, be sure it exists.
218260container-assets-path = " /opt/selenium/assets"
261+
262+ # Uncomment the following section if you are running the node on a separate VM
263+ # Fill out the placeholders with appropriate values
264+ # [server]
265+ # hostname = <ip-from-node-machine>
266+ # port = <port-from-node-machine>
219267```
220268
221269### Execution with Hub & Node roles
0 commit comments