Compass can't connect to mongodb running in docker

A post was split to a new topic: Can’t connect after upgrading to Compass 1.24.1