Error connect to external mongo (server not in hosts reported by primary)

Hi,
trying to connect tutor to external mongo db.
config.yml:

RUN_MONGODB: false
MONGODB_HOST: 11.22.33.44
MONGODB_USERNAME: edxapp
MONGODB_PASSWORD: ***
MONGODB_DATABASE: edxapp
MONGODB_PORT: 27017
FORUM_MONGODB_DATABASE: cs_comments_service
MONGOID_AUTH_MECH: :scram

env/local/docker-compose.override.yml:

version: "3.7"
services:
  forum:
    environment:
      - "MONGODB_HOST=11.22.33.44"
      - "MONGODB_USERNAME=edxapp"
      - "MONGODB_PASSWORD=***"
      - "MONGODB_DATABASE=edxapp"
      - "MONGODB_PORT=27017"
      - "FORUM_MONGODB_DATABASE=cs_comments_service"
      - "MONGOID_AUTH_MECH=:scram"

when tutor local start:

forum_1                      | 2023/08/18 11:13:34 Received 200 from http://elasticsearch:9200
forum_1                      | W, [2023-08-18T11:13:39.634200 #16]  WARN -- : Overwriting existing field _id in class User.
forum_1                      | W, [2023-08-18T11:13:39.719523 #16]  WARN -- : MONGODB | Unsupported client option 'max_retries'. It will be ignored.
forum_1                      | W, [2023-08-18T11:13:39.719590 #16]  WARN -- : MONGODB | Unsupported client option 'retry_interval'. It will be ignored.
forum_1                      | W, [2023-08-18T11:13:39.719619 #16]  WARN -- : MONGODB | Unsupported client option 'timeout'. It will be ignored.
forum_1                      | W, [2023-08-18T11:13:39.723462 #16]  WARN -- : MONGODB | Removing server 11.22.33.44:27017 because it is not in hosts reported by primary 11.22.33.44:27017 (self-identified as 127.0.0.1:27017). Reported hosts are: 127.0.0.1:27017
forum_1                      | W, [2023-08-18T11:13:39.725489 #16]  WARN -- : MONGODB | Error checking 127.0.0.1:27017: Mongo::Error::SocketError: Errno::ECONNREFUSED: Connection refused - connect(2) for 127.0.0.1:27017 (for 127.0.0.1:27017 (no TLS)) (on 127.0.0.1:27017)

So, forum trying to connect to 11.22.33.44 (external mongo), but self-interrupted, because MONGODB | Removing server 11.22.33.44:27017 because it is not in hosts reported by primary 11.22.33.44:27017 (self-identified as 127.0.0.1:27017). Reported hosts are: 127.0.0.1:27017

in mongo shell:

rs0:PRIMARY> rs.status()
{
        "set" : "rs0",
...
        "members" : [
                {
                        "_id" : 0,
                        "name" : "127.0.0.1:27017",
                        "health" : 1,
                        "state" : 1,
                        "stateStr" : "PRIMARY",
                        "uptime" : 950408,
                        "optime" : {
                                "ts" : Timestamp(1692359434, 1),
                                "t" : NumberLong(2)
                        },
                        "optimeDate" : ISODate("2023-08-18T11:50:34Z"),
                        "lastAppliedWallTime" : ISODate("2023-08-18T11:50:34.289Z"),
                        "lastDurableWallTime" : ISODate("2023-08-18T11:50:34.289Z"),
                        "syncSourceHost" : "",
                        "syncSourceId" : -1,
                        "infoMessage" : "",
                        "electionTime" : Timestamp(1691409028, 1),
                        "electionDate" : ISODate("2023-08-07T11:50:28Z"),
                        "configVersion" : 1,
                        "configTerm" : 2,
                        "self" : true,
                        "lastHeartbeatMessage" : ""
                }
        ],
        "ok" : 1,
...

What’s wrong?

I suppose, there is problem with mongo which consists of one primary host (itself). So, mongo-ruby-driver fails when check list of secondary servers:
mongo-ruby-driver

    # Removes servers from the topology which are not present in the
    # given server description (which is supposed to have come from a
    # good primary).
    def remove_servers_not_in_desc(updated_desc)
      updated_desc_address_strs = %w(hosts passives arbiters).map do |m|
        updated_desc.send(m)
      end.flatten
      servers_list.each do |server|
        unless updated_desc_address_strs.include?(address_str = server.address.to_s)
          updated_host = updated_desc.address.to_s
          if updated_desc.me && updated_desc.me != updated_host
            updated_host += " (self-identified as #{updated_desc.me})"
          end
          log_warn(
            "Removing server #{address_str} because it is not in hosts reported by primary " +
            "#{updated_host}. Reported hosts are: " +
            updated_desc.hosts.join(', ')
          )
          do_remove(address_str)
        end
      end
    end

Any fix?

Maybe fix founded
just remove from mongo settings replSet

/etc/mongod.conf
#replication:
  #replSetName: rs0