Java project set up using Selenium 3.141.59 works with Selenium Grid 4.0.0.
All browsers work with the remote selenium grid except EdgeChromium. That requires you to migrate your project to Selenium 4.0.0
Below is my simple docker-compose setup for a small project using Selenium Grid 4.0.0 where we test using the latest chrome browser
version: "3"
services:
selenium-hub-1:
image: selenium/hub:4.0.0
container_name: selenium-hub-1
ports:
- "4442:4442"
- "4443:4443"
- "4444:4444"
chrome-1:
image: selenium/node-chrome:latest
container_name: chrome-1
depends_on:
- selenium-hub-1
extra_hosts:
- "dev-centos8:192.168.101.102"
- "dev:192.168.101.102"
environment:
- SE_EVENT_BUS_HOST=selenium-hub-1
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
volumes:
- /downloads:/downloads
- /apps/functional-test:/apps/functional-test