Distributed memcached in cloud deployment with Docker-compose
A memcached "cluster" isn't really a cluster. Each memcached instance is independent and isolated. It's up to the client handle the sharding and route to the instance it wants for reads and writes.
If you want a cache system that does cluster and replicate, consider using Redis.
If you want to turn your Docker compose configurations into a cluster, use Docker Swarm.