Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit 318d3b7

Browse files
committed
Adding SE_NODE_GRID_URL to compose example
[skip ci]
1 parent f79a44a commit 318d3b7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,8 @@ docker run -d -e SCREEN_WIDTH=1366 -e SCREEN_HEIGHT=768 -e SCREEN_DEPTH=24 -e SC
390390
### Grid Url and Session Timeout
391391

392392
In some use cases you might need to set the Grid url to the Node, for example if you'd like to access the CDP endpoint. You
393-
can do that through the `SE_NODE_GRID_URL` environment variable.
393+
can do that through the `SE_NODE_GRID_URL` environment variable. Setting this env var is needed if you want to see the live
394+
view while sessions are executing.
394395

395396
Grid has a default session timeout of 300 seconds, where the session can be on a stale state until it is killed. You can use
396397
`SE_NODE_SESSION_TIMEOUT` to overwrite that value in seconds.

docker-compose-v3.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# To execute this docker-compose yml file use `docker-compose -f docker-compose-v3.yml up`
22
# Add the `-d` flag at the end for detached execution
3+
# Change "SE_NODE_GRID_URL=http://localhost:4444" to the URL/IP where the Grid is accesible.
34
# To stop the execution, hit Ctrl+C, and then `docker-compose -f docker-compose-v3.yml down`
45
version: "3"
56
services:
@@ -12,6 +13,7 @@ services:
1213
- SE_EVENT_BUS_HOST=selenium-hub
1314
- SE_EVENT_BUS_PUBLISH_PORT=4442
1415
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
16+
- SE_NODE_GRID_URL=http://localhost:4444
1517
ports:
1618
- "6900:5900"
1719

@@ -24,6 +26,7 @@ services:
2426
- SE_EVENT_BUS_HOST=selenium-hub
2527
- SE_EVENT_BUS_PUBLISH_PORT=4442
2628
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
29+
- SE_NODE_GRID_URL=http://localhost:4444
2730
ports:
2831
- "6901:5900"
2932

@@ -36,6 +39,7 @@ services:
3639
- SE_EVENT_BUS_HOST=selenium-hub
3740
- SE_EVENT_BUS_PUBLISH_PORT=4442
3841
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
42+
- SE_NODE_GRID_URL=http://localhost:4444
3943
ports:
4044
- "6902:5900"
4145

0 commit comments

Comments
 (0)