From 318d3b77dd37ee9dba65e0bbc4eed816aa2ea770 Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Thu, 23 Sep 2021 11:06:19 +0200 Subject: [PATCH] Adding SE_NODE_GRID_URL to compose example [skip ci] --- README.md | 3 ++- docker-compose-v3.yml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 26f9f635a..f66999071 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/docker-compose-v3.yml b/docker-compose-v3.yml index a5a9d8f79..43bd9ce98 100644 --- a/docker-compose-v3.yml +++ b/docker-compose-v3.yml @@ -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: @@ -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" @@ -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" @@ -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"