Issue is user is not created I have run below command in docker
docker exec -it {container_name} mongosh use admin
to choose database in which one we will add a custom user. Now we can type already prepared a script with a custom password, username, and roles
db.auth( 'admin', 'adminpassword' ) db.createUser({user: "root", pwd: "password", roles : [{role: "readWrite", db: "product-service"}]});