Python Mongodb Docker

client = MongoClient(
  host = ["ip:port"],
  username = "objectrocket",
  password = "1234",
)
client.admin.command('ping')
Benja