From bd1f33f0e9e065aeb4b16b5fa2a5e2c68f49c425 Mon Sep 17 00:00:00 2001 From: Doctor Who Date: Sat, 4 Dec 2021 04:43:55 +0100 Subject: [PATCH] Fix error 'SE_EVENT_BUS_HOST not set, exiting!' As the version for the `selenium/node-firefox` image is not fixed, the environment variables needs to be adjusted accordingly. I've added `CPU_CORES` as an external variable that can be adjusted or defaults to `2` CPU cores. --- docker-compose.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 158fe5a..7d803e5 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,10 +23,10 @@ services: depends_on: - hub environment: - HUB_PORT_4444_TCP_ADDR: hub - HUB_PORT_4444_TCP_PORT: 4444 - NODE_MAX_SESSION: 2 - NODE_MAX_INSTANCES: 10 + SE_EVENT_BUS_HOST: hub + SE_EVENT_BUS_PUBLISH_PORT: 4442 + SE_EVENT_BUS_SUBSCRIBE_PORT: 4443 + SE_NODE_MAX_SESSIONS: ${CPU_CORES:-2} volumes: - /dev/shm:/dev/shm ports: