I found this repository: GitHub - minhhungit/mongodb-cluster-docker-compose: Demo a simple sharded Mongo Cluster with a replication using docker compose
I am not done testing it but it seems to work for cluster and user initialization.