On node1:
docker swarm init --advertise-addr eth0
Copy and paste the command on other node
curl -O https://gist.githubusercontent.com/tcoupin/83a3c087f12248231b1625e17108014b/raw/docker-compose.yml && docker stack deploy -c docker-compose.yml elk