Docker replica not copy to secondary

Ok a set my string connection with directConnection and i don’t see my document on secondary 1 and secondary 2.

mongodb://user:password@172.16.50.16:27017/?authMechanism=DEFAULT&replicaSet=my-mongo-set&directConnection=true

I don’t understand why my primary is not copied to the secondary.