docker run --name mongodb -p 27017:27017 -v /var/docker/mongodb/data:/data/db -d mongo:4.2 mongod --replSet frei0

rs.initiate()

rs.conf()

cfg = rs.conf()

cfg.members[0].host = "roof:27017"

 rs.reconfig(cfg)