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.
This commit is contained in:
Doctor Who
2021-12-04 04:43:55 +01:00
committed by GitHub
parent 42e0a32c9a
commit bd1f33f0e9
+4 -4
View File
@@ -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: