Example Voting App adapted for Crafteo Training
You have two hosts at your disposal: host1 and host2 with Docker installed. We'll create a Docker Swarm with 2 nodes.
Commands to run on host1:
# ssh into host1: # # ssh ubuntu@ssh ubuntu@host1.training.crafteo.io # # Init Docker swarm from host1 # Keep outputed token! docker swarm initCommands to run on host2:
# ssh into host1: # # ssh ubuntu@ssh ubuntu@host2.training.crafteo.io # docker swarm join [TOKEN]# ssh into host1: # # ssh ubuntu@ssh ubuntu@host1.training.crafteo.io # # Clone Voting App repo git clone https://github.com/PierreBeucher/example-voting-app.git cd example-voting-app # Run the stack docker stack up voting-app -c docker-stack.ymlApp should be accessible (make sure to replace host1 by your actual hostname):