Not able to deploy loki read write component on the docker swarm


I am trying to deploy loki read write components with S3 bucket configuration on docker swarm cluster.
I am able to deploy the loki as per official document confirmation on single instance.however I am not able deploy on the docker swarm cluster.
What I am missing here which should be added for the docker swarm

I am getting errors like deadline exceeded
Empty rings
Sometime rpc related error
Transport error