Skip to content

Commit

Permalink
Adding SE_NODE_GRID_URL to compose example
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
diemol committed Sep 23, 2021
1 parent f79a44a commit 318d3b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,8 @@ docker run -d -e SCREEN_WIDTH=1366 -e SCREEN_HEIGHT=768 -e SCREEN_DEPTH=24 -e SC
### Grid Url and Session Timeout

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
can do that through the `SE_NODE_GRID_URL` environment variable.
can do that through the `SE_NODE_GRID_URL` environment variable. Setting this env var is needed if you want to see the live
view while sessions are executing.

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
`SE_NODE_SESSION_TIMEOUT` to overwrite that value in seconds.
Expand Down
4 changes: 4 additions & 0 deletions docker-compose-v3.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# To execute this docker-compose yml file use `docker-compose -f docker-compose-v3.yml up`
# Add the `-d` flag at the end for detached execution
# Change "SE_NODE_GRID_URL=http://localhost:4444" to the URL/IP where the Grid is accesible.
# To stop the execution, hit Ctrl+C, and then `docker-compose -f docker-compose-v3.yml down`
version: "3"
services:
Expand All @@ -12,6 +13,7 @@ services:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- SE_NODE_GRID_URL=http://localhost:4444
ports:
- "6900:5900"

Expand All @@ -24,6 +26,7 @@ services:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- SE_NODE_GRID_URL=http://localhost:4444
ports:
- "6901:5900"

Expand All @@ -36,6 +39,7 @@ services:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- SE_NODE_GRID_URL=http://localhost:4444
ports:
- "6902:5900"

Expand Down

0 comments on commit 318d3b7

Please sign in to comment.