Skip to content

Commit

Permalink
Fix error 'SE_EVENT_BUS_HOST not set, exiting!'
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Jiab77 committed Dec 4, 2021
1 parent 42e0a32 commit bd1f33f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker-compose.yml
Expand Up @@ -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:
Expand Down

0 comments on commit bd1f33f

Please sign in to comment.