Deploy the cluster use the following command
- sysctl -w vm.max_map_count=262144 (on each of the node)
- docker swarm init --advertise-addr (on the master node)
- run the join token on each of the worker node
- docker stack deploy -c docker-compose.yml mg
docker service rm $(docker service ls -q)